Handling First_rows in Weblogic.

Dear ALL,
The First_rows hint in a query in oracle gives data in first come first server basis .
Is there any way to handle java result set to act in sync with first_rows so that first few are processed not needing to wait for query completion.
Basically i am just a beginner to java and middleware.
There is an option prefetch enable in weblogic console ....does this correspond to first_rows ?
Thanks in advance,
Vijay G

Dear ALL,
The First_rows hint in a query in oracle gives data in first come first server basis .
Is there any way to handle java result set to act in sync with first_rows so that first few are processed not needing to wait for query completion.
Basically i am just a beginner to java and middleware.
There is an option prefetch enable in weblogic console ....does this correspond to first_rows ?
Thanks in advance,
Vijay G

Similar Messages

  • Handling First_rows in Web Logic

    Dear ALL,
    The First_rows hint in a query in oracle gives data in first come first server basis .
    Is there any way to handle java result set to act in sync with first_rows so that first few are processed not needing to wait for query completion.
    It seems resultset object waits for query completion (i.e) complete result set to be fetched.
    Basically i am just a beginner to java and middleware.
    Can this be done?
    There is an option prefetch enable in weblogic console ....does this correspond to first_rows ?
    Thanks in advance,
    Vijay G

    Hi,
    >Could you tell how to move the targets section?
    Weblogic Console-->Deployments-->Your Application-->Testing
    >Any link for reading?
    http://docs.oracle.com/cd/E14571_01/web.1111/b31974/deployment_topics.htm
    https://blogs.oracle.com/shay/entry/common_pitfalls_when_deploying
    After you deploy the application, you can test it from Oracle WebLogic Server. To test-run your ADF application, open a browser window and enter a URL:
      For non-Faces pages: http://<host>:port/<context root>/<page>
      For Faces pages: http://<host>:port/<context root>/faces/<view_id>  where <view_id> is the view ID of the ADF task flow view activity.
    Tip:
    The context root for an application is specified in the view-controller project settings by default as ApplicationName/ProjectName/context-root. You can shorten this name by specifying a name that is unique across the target application server. Right-click the view-controller project, and choose Project Properties. In the Project Properties dialog, select Java EE Application and enter a unique name for the context root.
    Note:
    /faces has to be in the URL for Faces pages. This is because JDeveloper configures your web.xml file to use the URL pattern of /faces in order to be associated with the Faces Servlet. The Faces Servlet does its per-request processing, strips out /faces part in the URL, then forwards the URL to the JSP. If you do not include the /faces in the URL, then the Faces Servlet is not engaged (since the URL pattern doesn't match). Your JSP is run without the necessary JSF per-request processing.
    Regards,
    Fabian

  • Fault handler BPEL PM Weblogic issue ?

    Products:
    SOA for WebLogic Server (10.1.3.4) , p7490612_101340_GENERIC
    Jdeveloper 10.1.3.4
    Windows XP sp2
    1.- I was install SOA for WSL 9.2 and Jdev succesfull, now i start with any test.
    2.- I test Fault handling framework , then i create the simple xml files: fault-bindings.xml and fault-policies\mybpiPolicy.xml
    ----- Abstract files
    &lt;faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension" name="bpelx:bindingFault"&gt;
    &lt;condition&gt;
    &lt;action ref="ora-retry"/&gt;
    &lt;/condition&gt;
    &lt;/faultName&gt;
    &lt;Action id="ora-retry"&gt;
    &lt;retry&gt;
    &lt;retryCount&gt;2&lt;/retryCount&gt;
    &lt;retryInterval&gt;6&lt;/retryInterval&gt;     
    &lt;exponentialBackoff/&gt;
    &lt;retryFailureAction ref="ora-human-intervention"/&gt;           
    &lt;/retry&gt;
    &lt;/Action&gt;
    3.- Then i create an simple async BPEL case for fault handling with a DB BPEL Adapter using a wrong Jdbc string for instance Bad SID database (deliberately , The correct is XE not XE1).
    Then i test it, and with audit trail in BPEL Console, i can view the 2 retries that i indicate in the descriptor, but after [FAULT RECOVERY|http://forums.oracle.com/forums/] Marked Invoke activity as "pending manual recovery, it have a exception.
    * In normal case with OC4J, after last line, the process is ready for recovery in a manual step.
    * Well i think so maybe i missing another configuration or parameter because it is deploy in WebLogic, i do not. next i put the text that in audit trail appers.
    Please help, regards.
    ----- my Messages in audit trail.
    --2008/12/30 21:28:29-- [FAULT RECOVERY|http://forums.oracle.com/forums/] Marked Invoke activity as "pending manual recovery".
    --2008/12/30 21:28:30-- "BPELFault" has not been caught by a catch block.
    --2008/12/30 21:28:30-- There is a system exception while performing the BPEL instance, the reason is "faultName: {{[http://schemas.oracle.com/bpel/extension]}remoteFault} messageType: {{[http://schemas.oracle.com/bpel/extension]}RuntimeFaultMessage} parts: {{code=0 ,summary=file:/D:/oracle/soasuitebasic/bpel/domains/default/tmp/.bpel_Test1BPEL_1.0_7f0af90c7bf1874b5077831987befd2d.tmp/do.wsdl [ do_ptt::doSelect(doSelect_inparameters,DomainCollection) |http://forums.oracle.com/forums/] - WSIF JCA Execute of operation 'doSelect' failed due to: Could not create/access the TopLink Session. This session is used to connect to the datastore. [Caused by: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: localhost:1521:XE1 |http://forums.oracle.com/forums/] ; nested exception is: ORABPEL-11622 Could not create/access the TopLink Session. This session is used to connect to the datastore. [Caused by: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: localhost:1521:XE1 |http://forums.oracle.com/forums/] See root exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. weblogic-ra.xml) and restart the server. Caused by Exception [TOPLINK-4002|http://forums.oracle.com/forums/] (Oracle TopLink - 10g Release 3 (10.1.3.4.0) (Build 080602)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: localhost:1521:XE1 Error Code: 0. ,detail= Internal Exception: java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: localhost:1521:XE1 Error Code: 0}} ". Please check the error log file for more infromation. A failure is detected in use of fault policy used to recover the activity. Please audit the instance manually or let engine recovery to attempt recovery. Best practice suggests to handle exceptions in fault policy or in the fault handlers in your bpel process. less
    com.oracle.bpel.client.BPELFault: faultName: {{[http://schemas.oracle.com/bpel/extension]}remoteFault}
    messageType: {{[http://schemas.oracle.com/bpel/extension]}RuntimeFaultMessage}
    parts: {{code=0
    ,summary=file:/D:/oracle/soasuitebasic/bpel/domains/default/tmp/.bpel_Test1BPEL_1.0_7f0af90c7bf1874b5077831987befd2d.tmp/do.wsdl [ do_ptt::doSelect(doSelect_inparameters,DomainCollection) |http://forums.oracle.com/forums/] - WSIF JCA Execute of operation 'doSelect' failed due to: Could not create/access the TopLink Session.
    This session is used to connect to the datastore. [Caused by: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:XE1
    ; nested exception is:
    ORABPEL-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the datastore. [Caused by: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:XE1
    See root exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. weblogic-ra.xml) and restart the server. Caused by Exception [TOPLINK-4002|http://forums.oracle.com/forums/] (Oracle TopLink - 10g Release 3 (10.1.3.4.0) (Build 080602)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:XE1
    Error Code: 0.
    ,detail=
    Internal Exception: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:XE1
    Error Code: 0
    at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:623)
    at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:437)
    at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:251)
    at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:826)
    at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:402)
    at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.expire(BPELInvokeWMP.java:151)
    at com.collaxa.cube.engine.CubeEngine.expireActivity(CubeEngine.java:4161)
    at com.collaxa.cube.engine.CubeEngine.expireActivity(CubeEngine.java:2073)
    at com.collaxa.cube.ejb.impl.ActivityManagerBean.expireActivity(ActivityManagerBean.java:174)
    at com.collaxa.cube.ejb.impl.ActivityManagerBean.expireActivity(ActivityManagerBean.java:145)
    at com.collaxa.cube.ejb.impl.ActivityManagerBean_lcloe8_ELOImpl.expireActivity(ActivityManagerBean_lcloe8_ELOImpl.java:542)
    at com.collaxa.cube.engine.dispatch.message.instance.ExpirationMessageHandler.handle(ExpirationMessageHandler.java:43)
    at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:140)
    at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:58)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    at java.lang.Thread.run(Thread.java:595)
    -----

    The fault management framework catches all faults (business and runtime) for an invoke activity only.
    For all other activities use the BPEL fault handler.

  • URGENT HELP on HTTP Handler class from WebLogic

              Hi,
              We are using a configuration where Weblogic is behind a firewall
              and we are making http calls to hosts on the same
              internal network and to hosts on the Internet. For Internet hosts
              we make the http calls pass thru a firewall configured to act as
              a proxy.
              The way you do it is use JVM settings http.proxyHost, http.proxyPort
              and http.nonProxyHosts.
              Now I found that the JVM setting "http.nonProxyHosts"
              is ignored by the weblogic http url connection class resulting
              in
              packets intended for local hosts being sent to the firewall/proxy
              and obviously getting rejected. This happens because Weblogic uses
              its own Http URL Connection class from weblogic.net.http.HttpURLConnection.
              This replaces Sun provided defualt HttpURLConnection class which
              works fine
              Is this a known problem in Version 5.1 sp8 on Solaris
              7 ? How can I make http calls (using java.net classes) to
              internal hosts directly when "http.proxyHost" property is set ?
              PLEASE HELP !!
              Thanks
              Atish
              

    There were quite a few problems reported here when using WebLogic's
              handlers for outgoing HTTP (and HTTPS) connection - all can be
              easily avoided by using Sun's implementation:
              streamhandler = get reference to a sun's stream handler
              URL url = new URL(null, urlString, streamhandler);
              URLConnection conn = url.openConnection();
              Atish Ray <[email protected]> wrote:
              > Hi,
              > We are using a configuration where Weblogic is behind a firewall
              > and we are making http calls to hosts on the same
              > internal network and to hosts on the Internet. For Internet hosts
              > we make the http calls pass thru a firewall configured to act as
              > a proxy.
              > The way you do it is use JVM settings http.proxyHost, http.proxyPort
              > and http.nonProxyHosts.
              > Now I found that the JVM setting "http.nonProxyHosts"
              > is ignored by the weblogic http url connection class resulting
              > in
              > packets intended for local hosts being sent to the firewall/proxy
              > and obviously getting rejected. This happens because Weblogic uses
              > its own Http URL Connection class from weblogic.net.http.HttpURLConnection.
              > This replaces Sun provided defualt HttpURLConnection class which
              > works fine
              > Is this a known problem in Version 5.1 sp8 on Solaris
              > 7 ? How can I make http calls (using java.net classes) to
              > internal hosts directly when "http.proxyHost" property is set ?
              > PLEASE HELP !!
              > Thanks
              > Atish
              Dimitri
              

  • Handler Configuration in Weblogic 10.3g

    I created a webservice project as Web Service Project wizard and selected Annotated Web Service Facets JAX_RPC(Recommended)(v10.3) configuration using workshop. Then I generated webservice from wsdl.
    Webservice is working but when I annotate handler using following annotation it showing an error
    @HandlerChain(file="chain.xml")
    could not find handler chain "null" WebserviceCI/src/com/webservice/chain.xml myServicePortTypeImpl.java
    i have place the chain.xml in com.webservice package

    Hi,
    I think this would be helpful for you.
    http://edocs.bea.com/wls/docs81/ConsoleHelp/jms_config.html#1105204
    thanks,

  • Unique session key  weblogic portal 9.2

    Hi,
    Is there a way I can generate unique session key to ensure correct session is tracking between every desktop with different user.
    Is this right way to handle session in weblogic portal 9.2?

    Hi
    what exactly do you want to do? A session does have an id which is guaranteed unique while the server is running (you dont need to do anything special for this). HttpSession.getId.
    Note However normally this value gets stored as a cookie on the browser (with the default name of JSESSIONID) and you must ensure that different webapps on the same domain dont overwrite this value
    regards
    deepak

  • Using JAAS with Weblogic 10.3

    Hi all,
    we're porting our application from oc4j r2 to weblogic 10.3 and the last piece of the puzzle seems to be jaas. There's a small problem in that we use our own security model, so we need jaas only to be able to use getCallerPrincipal() from an EJB. So we don't really want to perform authentication, only to save the principal.
    We tried adding our own login module and callback handler and called weblogic.security.services.Authentication.login to get a subject and then weblogic.servlet.security.ServletAuthentication.runAs to save the user. From what I saw the server tries to use the embedded LDAP, so I started looking into security realms. It seems I need to create a dummy authentication provider? Is there an easier way for the dummy login?
    Thanks

    I'm not sure about Authentication Provider. I'll look into it. On the other hand I wrote 3 simple classes, one simple principal, one login module and one simple callback handler.
    Even though I get no exception and finally I call loginContext.login(). But still getCallerPrincipal() from the ejb context returns weblogic's admin.
    In my LoginModule's commit method, I have this:
        public boolean commit() throws LoginException {
            if (succeeded == false) {
                return false;
            } else {
                // add a Principal (authenticated identity)
                // to the Subject
                // assume the user we authenticated is the SamplePrincipal
                userPrincipal = new DummyPrincipal(username);
                if (!subject.getPrincipals().contains(userPrincipal)) {
                    subject.getPrincipals().add(userPrincipal);
                log.debug("Added principal " + username + " to the subject");
                if (debug) {
                    log.debug("Login Module Principals:");
                    for (Iterator i = subject.getPrincipals().iterator(); i.hasNext();) {
                        log.debug("Principal: " + ((Principal)i.next()).getName());
                // in any case, clean out state
                username = null;
                password = "";
                password = null;
                commitSucceeded = true;
                return true;
        }which is essentially taken from Sun's tutorial. It just seems that weblogic does not take into consideration the login I perform through jaas. Do I need to call runAs, doPrivilegedAction, each time an http request is made?

  • Logging of Forwarded HTTP Requests using RequestDispatcher in Weblogic

    Can anyone help me on this?
    Logging of Forwarded HTTP Requests using RequestDispatcher in Weblogic
    Access Log File:
    1. I have a servlet(S1) which decides which JSP to be published based on
    some logic. If I try to forward the request from a servlet to a JSP or to
    another servlet from within S1 using RequestDispatcher, it doesn't get
    logged in the access log, only the initial request to S1 gets logged, when I
    switch on HTTP logging by setting weblogic.httpd.enableLogFile to true. Is
    there any way of logging this forwarding of request in the access log?
    2. If there is no solution for (1), I woiuld like to make entries into the
    access log file of weblogic in the common log format, when I forward a
    request to a JSP or a servlet throught the RequestDispatcher, so that I can
    use standard tools to analyze the logfile.The two issues with this are (i)
    is there any weblogic service that gives a handle to the access log file
    like the LogServicesDef which gives a handle to the weblogic log file. (ii)
    Is there any utility class available that can format a URL pointing to a JSP
    to a string confirming to the common log format.

    The log4j:ERROR messages are not coming from Log4j 2 and are most likely from Log4j 1.x. Somehow Log4j 1.x must be getting the log4j2 configuration.

  • Rewrite Location-headers in frontend by weblogic plugin

    Hi!
    I've got a problem where I've got a Apache 2.2.9 acting as a proxy for a application running on BEA Weblogic.
    I'm using the plugin from BEA Weblogic as the proxy.
    Everything works fine except when the weblogicserver makes a redirect, i.e. sends a Location-header. The Location header looks like "Location: http://weblogic.internal.net/Client".
    The servername should be rewritten to the public nam "proxy.example.com".
    ### START ### Weblogic configuration in apache.conf:
    LoadModule weblogic_module /usr/lib/apache2/modules/mod_wl_22.so
    <IfModule mod_weblogic.c>
    WebLogicHost weblogic.internal.net
    WebLogicPort 8202
    WLProxySSL on
    DebugConfigInfo on
    Debug ALL
    </IfModule>
    <Location /Application/>
    SetHandler weblogic-handler
    </Location>
    ### END ### Weblogic configuration in apache.conf:
    Any ideas on how to manage the rewrite of the Location-header?
    Can weblogic plugin and mod_proxy/mod_rewrite be comined?
    Is there any other configuration parameters for weblogic to state the frontend machine?
    /Andreas

    Hi!
    I've got a problem where I've got a Apache 2.2.9 acting as a proxy for a application running on BEA Weblogic.
    I'm using the plugin from BEA Weblogic as the proxy.
    Everything works fine except when the weblogicserver makes a redirect, i.e. sends a Location-header. The Location header looks like "Location: http://weblogic.internal.net/Client".
    The servername should be rewritten to the public nam "proxy.example.com".
    ### START ### Weblogic configuration in apache.conf:
    LoadModule weblogic_module /usr/lib/apache2/modules/mod_wl_22.so
    <IfModule mod_weblogic.c>
    WebLogicHost weblogic.internal.net
    WebLogicPort 8202
    WLProxySSL on
    DebugConfigInfo on
    Debug ALL
    </IfModule>
    <Location /Application/>
    SetHandler weblogic-handler
    </Location>
    ### END ### Weblogic configuration in apache.conf:
    Any ideas on how to manage the rewrite of the Location-header?
    Can weblogic plugin and mod_proxy/mod_rewrite be comined?
    Is there any other configuration parameters for weblogic to state the frontend machine?
    /Andreas

  • Who takes care of load balancing work in weblogic cluster ?

    Hi Folks,
    How load balancing is handled internally by weblogic cluster ? Does Admin server takes care of cluster load balancing ? According to me Admin has nothing to do with load balancing in cluster . Manage server continue to run even when Admin server is down.
    I am not looking for explanation about different load balancing algorithm. I am interested in who executes those algorithms in weblogic cluster and how .
    Cheers
    B.

    Hi,
    You need to configure loadbalancer and there are different ways to do this. Please go through the below thread to user Apache Loadbalancer.
    problem with Apache Proxy plugin
    Regards
    Suresh.

  • Weblogic plugin, httpd and syntax.

    Hi,
    We would like to be able to configure the weblogic apache plugin to talk
    to two weblogic clusters.
    Inside the httpd.conf
    <Location /weblogic>
    SetHandler weblogic-handler
    </Location>
    <Location /servletimages>
    SetHandler weblogic-handler
    </Location>
    PathTrim weblogic
    Listen 80
    Listen 8000
    <VirtualHost 10.9.1.2:80>
    ServerName www.1.com
    DocumentRoot /usr/local/apache/htdocs
    WebLogicCluster weblogic_host1:7005,weblogic_host2:7005,weblogic_host3:7005
    </VirtualHost>
    <VirtualHost 10.9.1.2:8000>
    ServerName www.2.com
    DocumentRoot /usr/local/apache/htdocs/stage
    WebLogicCluster weblogic_host1:7003,weblogic_host2:7003,weblogic_host3:7003
    </VirtualHost>
    According to another topic in this group, this should work with SP4, but
    I can find no pointers to the correct syntax.
    Any help appreciated....
    Steve Haigh

    The WebLogic Server version 1.1 plug-ins are now available for download via the http://metalink.oracle.com/ Web site, and also from http://www.oracle.com/technology/software/products/ias/htdocs/wls_main.html.
    See http://download.oracle.com/docs/cd/E14571_01/web.1111/e16435/toc.htm for more info.
    -Kevin

  • Creating Virtual Hosts in Weblogic 8.1

    How to create Virtual Host in WLS 8.1
    (i.e) , if i type WWW.myapplication.com, the WLS8.1 should fetch the page........

    Use the Administration Console to define a virtual host.
    Create a new Virtual Host.
    Expand the Services node in the left pane. The node expands and displays a list of services.
    Click the virtual hosts node. If any virtual hosts are defined, the node expands and displays a list of virtual hosts.
    Click Create a New Virtual Host in the right pane.
    Enter a name to represent this virtual host.
    Enter the virtual host names, one per line. Only requests matching one of these virtual host names will be handled by the WebLogic Server instance or cluster targeted by this virtual host.
    Click Create.
    Define logging and HTTP parameters:
    (Optional) Click on the Logging tab and fill in HTTP access log attributes (For more information, see Setting Up HTTP Access Logs.)
    Select the HTTP tab and fill in the HTTP Parameters.
    Define the servers that will respond to this virtual host.
    Select the Targets --> Servers tab. You will see a list of available servers.
    Select a server.
    Click Apply.
    Define the clusters that will respond to this virtual host (optional). You must have previously defined a WebLogic Cluster. For more information, see Using WebLogic Server Clusters.
    Select the Targets tab.
    Select the Clusters tab. You will see a list of available clusters.
    Select a cluster.
    Click Apply.
    Target Web Applications to the virtual host.
    Click the Web Applications node in the left panel.
    Select the Web Application you want to target.
    Select the Targets tab in the right panel.
    Select the Virtual Hosts tab.
    Select Virtual Host.
    Click Apply.
    You must add a line naming the virtual host to the etc/hosts file on your server to ensure that the virtual host name can be resolved.

  • FindByPrimaryKey: Could not find prepared statement with handle 3

    I've inherited a WL61 application and been asked to make it work under WL81. We're using SQL Server 2000. We only access two tables. The XML got auto-converted during the upgrade, but I had to correct the RDBMS column names in the weblogic-cmp-jar.xml
    The application mostly works except the findByPrimaryKey fails with:
    ERROR ExecuteThread: '14' for queue: 'weblogic.kernel.Default' Administrator : TargetSessionBean - Error finding promotion with ID <2>
    javax.ejb.FinderException: Problem in findByPrimaryKey while preparing or executing statement: 'weblogic.jdbc.wrapper.PreparedStatement_weblogic_jdbc_base_BasePreparedStatement@95':
    java.sql.SQLException: [BEA][SQLServer JDBC Driver][SQLServer]Could not find prepared statement with handle 3.
    java.sql.SQLException: [BEA][SQLServer JDBC Driver][SQLServer]Could not find prepared statement with handle 3.
    at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
    at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
    I've checked the database table and the row exisits with the appropriate PK (in this case a promotion with ID <2>).
    In the WL61 version the findByPrimaryKey was explicitly defined in the weblogic-cmp-rdbms-jar.xml as follows:
    <finder>
    <method-name>findByPrimaryKey</method-name>
    <method-params>
    <method-param>com.fujitsu.ftxs.corema.server.PromotionPK</method-param>
    </method-params>
    <finder-query><![CDATA[ (= $0 promotionId) ]]></finder-query>
    <finder-expression>
    <expression-number>0</expression-number>
    <expression-text><![CDATA[@0.promotionId]]></expression-text>
    <expression-type>int</expression-type>
    </finder-expression>
    </finder
    But I understand that with WL81 I should no longer define this - it's done implicitly - so I've removed this finder definition.
    Any help appreciated. Thanks,
    - Andy Abel

    I fixed it by switching from the using the BEA driver:-
    DriverName="weblogic.jdbc.sqlserver.SQLServerDriver"
    URL="jdbc:bea:sqlserver://host:1433"
    And using the Microsoft Driver instead:-
    DriverName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
    url=jdbc:microsoft:sqlserver://host:1433
    If anyone can explain why the Microsoft Driver works and the BEA driver does not I'd like to know.
    Thanks,
    - Andy Abel

  • Apache Virtual Hosts and Weblogic 5.1SP6

    Running:
    WebLogic Server 5.1.0 w/ Service Pack 6
    Solaris 7
    Hello, I've been reading through the newsgroups and saw alot of information on
    setting up apache and weblogic to handle virtual hosts, but am still having problems
    getting it to work.
    I have 2 domains that will be served up by one instance of Apache using NameBased
    virtual hosts and I would like to have our one instance of WebLogic 5.1SP6 handle
    them as well.
    Excerpt from my httpd.conf file:
    NameVirtualHost 216.xx.x.xx:80
    <VirtualHost vcstgws011:80>
    ServerName vcstgws011.domain1.com
    Port 80
    DocumentRoot /opt/vci-10.8/webapps/www
    DirectoryIndex index.jsp
    <Directory "/opt/vci-10.8/webapps/www">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
    <VirtualHost vcstgws011:80>
    ServerName www.domain2.com
    Port 80
    DocumentRoot /opt/vci-10.8/webapps/www/dsl
    DirectoryIndex index.jsp
    <Directory "/opt/vci-10.8/webapps/www">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
    Under my default server configuration I have the WebLogic stuff:
    <IfDefine WL>
    WebLogicCluster vcstgas011.domain1.com:7001
    Debug on
    DebugConfigInfo on
    ConnectTimeoutSecs 60
    HungServerRecoverSecs 300
    Debug on
    DebugConfigInfo on
    <Files *.jsp>
    SetHandler weblogic-handler
    </Files>
    <Location /weblogic>
    SetHandler weblogic-handler
    PathTrim /weblogic
    </Location>
    <Location /servlet>
    SetHandler weblogic-handler
    </Location>
    <Location /Admin*>
    SetHandler weblogic-handler
    </Location>
    <Location /j_security_check>
    SetHandler weblogic-handler
    </Location>
    </IfDefine>
    And here's an excerpt from my weblogic.properties file:
    # HTTPD
    weblogic.httpd.enable=true
    # DocumentRoot configuration
    weblogic.httpd.defaultWebApp=/opt/vci-10.8/webapps/www
    weblogic.httpd.indexDirectories=true
    Any help would be appreciated.
    Thanks,
    Mark

    Anyone have success with Name-Based virtual hosts using same instance of WebLogic?
    "Mark Mangano" <[email protected]> wrote:
    >
    Running:
    WebLogic Server 5.1.0 w/ Service Pack 6
    Solaris 7
    Hello, I've been reading through the newsgroups and saw alot of information
    on
    setting up apache and weblogic to handle virtual hosts, but am still
    having problems
    getting it to work.
    I have 2 domains that will be served up by one instance of Apache using
    NameBased
    virtual hosts and I would like to have our one instance of WebLogic 5.1SP6
    handle
    them as well.
    Excerpt from my httpd.conf file:
    NameVirtualHost 216.xx.x.xx:80
    <VirtualHost vcstgws011:80>
    ServerName vcstgws011.domain1.com
    Port 80
    DocumentRoot /opt/vci-10.8/webapps/www
    DirectoryIndex index.jsp
    <Directory "/opt/vci-10.8/webapps/www">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
    <VirtualHost vcstgws011:80>
    ServerName www.domain2.com
    Port 80
    DocumentRoot /opt/vci-10.8/webapps/www/dsl
    DirectoryIndex index.jsp
    <Directory "/opt/vci-10.8/webapps/www">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
    Under my default server configuration I have the WebLogic stuff:
    <IfDefine WL>
    WebLogicCluster vcstgas011.domain1.com:7001
    Debug on
    DebugConfigInfo on
    ConnectTimeoutSecs 60
    HungServerRecoverSecs 300
    Debug on
    DebugConfigInfo on
    <Files *.jsp>
    SetHandler weblogic-handler
    </Files>
    <Location /weblogic>
    SetHandler weblogic-handler
    PathTrim /weblogic
    </Location>
    <Location /servlet>
    SetHandler weblogic-handler
    </Location>
    <Location /Admin*>
    SetHandler weblogic-handler
    </Location>
    <Location /j_security_check>
    SetHandler weblogic-handler
    </Location>
    </IfDefine>
    And here's an excerpt from my weblogic.properties file:
    # HTTPD
    weblogic.httpd.enable=true
    # DocumentRoot configuration
    weblogic.httpd.defaultWebApp=/opt/vci-10.8/webapps/www
    weblogic.httpd.indexDirectories=true
    Any help would be appreciated.
    Thanks,
    Mark

  • WebLogic 6.0 HttpURLConnection class won't let me connect to a proxy

              I am getting a '400' error (which means the server cannot understand
              the request, I believe) when I attempt to connect to a proxy server
              to download the auto-configuration (.pac) file - don't ask why,
              it's a long story.
              My code works fine when I run it outside WebLogic from a vanilla
              Java class (using Sun's standard URLConnection class), but as soon
              as I put it inside a servlet in WebLogic 6.0, and it's wrapped
              by the weblogic.net.http.HttpURLConnection class, I get the following
              stack trace:
              java.io.FileNotFoundException: Response: '400' for url: 'http://corporate-proxy-server-name:8080'
              at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:351)
              at com.csfb.gws.proxy.ProxyFinder.getProxyString(ProxyFinder.java:82)
              at com.csfb.gws.proxy.ProxyFinder.getProxiesForIpAddress(ProxyFinder.java:46)
              at com.csfb.gws.proxy.test.TestProxyFinderServlet.doPost(TestProxyFinderServlet.java:52)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1127)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1529)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              Does anyone have any idea why this is happening? It certainly seems
              as though the WebLogic wrapper class is not working the same as
              Sun's standard HttpURLConnection.
              Any advice would be greatly appreciated.
              Cheers
              Dave
              

    You can use something like this:
              URLStreamHandler handler = new sun.net.www.protocol.http.Handler();
              URL url = new URL(null, "http://yourserver", handler);
              to use Sun's handler instead of WebLogic's. (you will have to edit weblogic.policy
              accordingly to allow your code to specify handler).
              Dave Blumenfeld <[email protected]> wrote:
              > WebLogic Server automatically wraps its own HttpURLConnection class
              > around the Sun one. I haven't explicitly requested that it do so.
              > Don't know if I have any control over that.
              > "Xiang Rao" <[email protected]> wrote:
              >>
              >>Why not just use Sun's HttpURLConnection if it works fine
              >>for you?
              >>The only thing you need to do is adding java.net to any
              >>related
              >>variable declaration such as java.net.HttpURLConnection
              >>= (java.net.HttpURLConnection)url.openConnection().
              >>
              >>
              >>
              >>"Dave Blumenfeld" <[email protected]> wrote:
              >>>
              >>>I am getting a '400' error (which means the server cannot
              >>>understand
              >>>the request, I believe) when I attempt to connect to
              >>a
              >>>proxy server
              >>>to download the auto-configuration (.pac) file - don't
              >>>ask why,
              >>>it's a long story.
              >>>
              >>>My code works fine when I run it outside WebLogic from
              >>>a vanilla
              >>>Java class (using Sun's standard URLConnection class),
              >>>but as soon
              >>>as I put it inside a servlet in WebLogic 6.0, and it's
              >>>wrapped
              >>>by the weblogic.net.http.HttpURLConnection class, I get
              >>>the following
              >>>stack trace:
              >>>
              >>>java.io.FileNotFoundException: Response: '400' for url:
              >>>'http://corporate-proxy-server-name:8080'
              >>>
              >>> at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:351)
              >>>
              >>> at com.csfb.gws.proxy.ProxyFinder.getProxyString(ProxyFinder.java:82)
              >>>
              >>> at com.csfb.gws.proxy.ProxyFinder.getProxiesForIpAddress(ProxyFinder.java:46)
              >>>
              >>> at com.csfb.gws.proxy.test.TestProxyFinderServlet.doPost(TestProxyFinderServlet.java:52)
              >>>
              >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              >>>
              >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              >>>
              >>> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
              >>>
              >>> at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1127)
              >>>
              >>> at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1529)
              >>>
              >>> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              >>>
              >>> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >>>
              >>>
              >>>Does anyone have any idea why this is happening? It certainly
              >>>seems
              >>>as though the WebLogic wrapper class is not working the
              >>>same as
              >>>Sun's standard HttpURLConnection.
              >>>
              >>>Any advice would be greatly appreciated.
              >>>Cheers
              >>>Dave
              >>
              Dimitri
              

Maybe you are looking for

  • How do I limit what movies are displayed at the top on the main screen

    Is there any way to limit what movies are displayed at the top on the main screen when menu Computers are selected? Currently it shows ALL of the content in the Movies folder in iTunes, but I would like to not show my 1 million 5-second videoclips an

  • How do I add an exception for a subnet for security certificates?

    I am trying to allow a local subnet to not have to be prompted for the security certificates each time the PC needs one. Any ideas? i've checked in FF and IE both, neither are cooperating.

  • Need mass storage dri

    I have Windows XP with SP. I have a problem with my computer spontaneously re-booting every time I disconnect my Zen V from the USB port. It will immediately re-boot as if I pressed the reset button. I suspect it may have something to do with the "?"

  • Javascript: 'has no properties' error

    Stumped by javascript once again. Can anyone see why I'm getting a 'mybuton has no properties' error in this script: javascript: var mybutton = document.getElementById('lnkBtn_delete'); var oldonclickfunction = mybutton.onClick; //old postback method

  • Fiori Client - How to view the Log file

    Hi, on my Android phone the fiori client version 1.1.3 behaves awkward. When I want to start an app from the lauchpad the whole client app crashes. The android app just terminates. How can I access the logfile? The Fiori Client user Guide says I can