Interportlet communication JSR 168

I have two JSR portlets that use jsp files in their doView() methods. One portlet is menu and the other
portlet performs some action in response to selection in menu portlet.
My idea was to do the following menu.jsp for MyMenu portlet:
<%@ page import="some.package.MyMenuPortlet"%>
<%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<%@ taglib uri="http://www.bea.com/servers/portal/tags/netuix/render" prefix="render"%>
<p><b>Menu:</b></p>
<render:windowUrl var="windowUrl">
<render:param name="SELECTION" value="SOME_SELECTION_VALUE"/>
</render:windowUrl>
<netui:anchor href="<%=windowUrl%>"></netui:anchor><br>
This creates a one option menu with a href identical to the calling http request with addition of
SELECTION parameter at the end.
As a next step I wanted to do follwoing doView() method in secon portlet.
public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
response.setContentType("text/html");
String menuSelectionValue = request.getParameter("SELECTION");
if (menuSelectionValue == "SOME_SELECTION_VALUE")
     /* do something regardind thin selection */
The proble is that request.getParameter("SELECTION") returns null. I think it takes parameters only from
context of portlet whom the doView() we are in.
Is there any way to retrieve parameter from http request?
Or is there any other way to compose request in a MyMenu.jsp? <portlet:renderURL> doesn´t work either.
It is visible only in MYMenuPortlet.doView() and not in MyOtherPortlet.doView(). Clearly a portlet scope
issue.
Is there any way to do this?
Another option is to use <portlet:actionURL> which would invoke MyMenuPortlet.processAction(). I could
then store selection value in user session (APPLICATION_SCOPE) and this would then be visible to my
other portlet.
Any suggestions?
Thanx

You have the following alternatives...
Sure, the portlet session with APPLICATION_SCOPE
Or,
you can get the HttpServletRequest from the request like the following:
request.getAttribute("javax.servlet.request");
I have two JSR portlets that use jsp files in their
doView() methods. One portlet is menu and the other
portlet performs some action in response to selection
in menu portlet.
My idea was to do the following menu.jsp for MyMenu
portlet:
<%@ page import="some.package.MyMenuPortlet"%>
<%@ taglib uri="netui-tags-html.tld"
prefix="netui"%>
<%@ taglib uri="http://java.sun.com/portlet"
prefix="portlet"%>
<%@ taglib
uri="http://www.bea.com/servers/portal/tags/netuix/ren
der" prefix="render"%>
<p><b>Menu:</b></p>
<render:windowUrl var="windowUrl">
<render:param name="SELECTION"
ION" value="SOME_SELECTION_VALUE"/>
</render:windowUrl>
<netui:anchor
href="<%=windowUrl%>"></netui:anchor><br>
This creates a one option menu with a href identical
to the calling http request with addition of
SELECTION parameter at the end.
As a next step I wanted to do follwoing doView()
method in secon portlet.
public void doView(RenderRequest request,
RenderResponse response) throws PortletException,
IOException
response.setContentType("text/html");
String menuSelectionValue =
e = request.getParameter("SELECTION");
if (menuSelectionValue == "SOME_SELECTION_VALUE")
     /* do something regardind thin selection */
The proble is that request.getParameter("SELECTION")
returns null. I think it takes parameters only from
context of portlet whom the doView() we are in.
Is there any way to retrieve parameter from http
request?
Or is there any other way to compose request in a
MyMenu.jsp? <portlet:renderURL> doesn´t work either.
It is visible only in MYMenuPortlet.doView() and not
in MyOtherPortlet.doView(). Clearly a portlet scope
issue.
Is there any way to do this?
Another option is to use <portlet:actionURL> which
would invoke MyMenuPortlet.processAction(). I could
then store selection value in user session
(APPLICATION_SCOPE) and this would then be visible to
my
other portlet.
Any suggestions?
Thanx

Similar Messages

  • Interportlet communication using JSR 168

    Hi All
    We are using JSR 168 portlets . My requirement is invoke the method of Portlet B on some event of Portlet A.
    I need help on the implementation of Interportlet communication using JSR 168
    Thanks

    Hi,
    Go through the below two discussions
    Interportlet communication using JSR 168
    Re: JSR 168 Portlets -- IPC with Custom Events
    Thanks,
    Venkat Sarvabatla

  • How to do interportlet communication in JSR 286 Portlet

    HI,
    We are using webcentre portlet producer appliaction  and creating JSr 286 portlets. Using Jdeveloper 11.1.8.1 .
    Now we have two portlets one is search and another is search result.
    After the seacrh is clicked DAO should get called and search result should get refreshed with the search result.
    PLease let me know how can we do this ?
    Thanx in Advance.

    Hi ,
    You can refer below links to achieve interportlet communication.
    Inter Portlet Communication with ADF portlets | Yannick Ongena's WebCenter And Enterprise 2.0 Blog
    https://www.youtube.com/watch?v=NI2Zy6gRfF4
    Thanks

  • Inter Portlet Communication for JSR 168 Portlets

    Hi,
    I want to invoke one JSR168 Portlet from another and also pass parameters between the two.I did the same using Events for Oracle Portlets.
    I would like to know how to do the same when I build JSR 168 Portlets.
    Also Pls let me know where I can get documentation which describes all the possible options that I can try out on JSR168 Portlets
    Regards
    Yash

    Hello Yash,
    The current version of the specifications does not support Parameter and Events that allow you to create portlet 2 portlet communication using OracleAS Portal framework.
    If the reusability of the parameter is not a major requirement of your application you can simply use URL parameters and this will authorize you implement that.
    Regards
    Tugdual Grall

  • Remote Inter Portlet Communication for JSR 168

    Hi All,
    We are stuck in a big problem using JSR 168 as remote portlets. We will be relieved if someone can suggest few ideas on this. I will provide the scenario which we are trying now.
    We have two portlets namely portlet A and portlet B which are Java(JSR 168) type portlets. These two portlets are offered as remote and they reside in the producer application. We have consumed these two portlets in our consumer application.
    The portlet A is triggering an event and portlet B is listening to the event triggered by portlet A. Currently we are trying to implement this functionality using Ajax. We tried to use customEventUrl tag in our jsp belonging to portlet A and we finally figured out that customEventUrl will not work in Remote portlets. We are not sure as how to pass the information from remote portlet A to remote portlet B. Please let us know your thoughts about this as whether the implementation is really possible when using Remote portlets.
    IMPORTANT NOTE: The event handling and the configuration code that we have made in the above scenario is working perfectly for non-remote java portlets. The problem is occurring only when we consume them in the consumer application.
    Thanks
    Vijay

    Hello Ashwin,
    What version of WebLogic Portal are you using? And is this the same for both the consumer and producer?
    If you are using WLP 10.3.2 I would highly recommend using JSR286 portlets (the next version of the Java Portlet (JSR168) specification) and the JSR286-standard eventing. The JSR286 eventing model is actually much cleaner and easier to understand than the WLP-proprietary support for events in JSR168 portlets.
    However, if you are using a version of WLP prior to 10.3.2 and can't upgrade, JSR168-style events are your only choice. I can give you examples, but they all look very similar to the examples in the online documentation.
    When events work between portlets locally, but not over WSRP, the usual problems are:
    - There is one or more of "onlyIfDisplayed", "sourceDefinitionLabels" or "sourceInstanceLabels" attributes declared on the handle*Event element in the .portlet file. These attributes restrict when the portlet should receive an event, and they usually don't work the way you think when running over WSRP. It is best to not use these attributes for portlets which are going to be used over WSRP.
    - A payload is being sent with the event which is not actually serializable. If serialization of the event payload (which is required for versions of WLP prior to 10.3.2 for WSRP) fails, the event will not be delivered to the portlet.
    - The producer may be configured to not accept events. Check your producer's WEB-INF/wsrp-producer-config.xml file; the "service-config" element should either not have an "offer-extensions" attribute, or this attribute's value should be "true".
    - The events may be getting sent during a portlet lifecycle other than processAction or handleEvent. There is no way for WSRP to handle events which have been sent during preRender or render, so it simply doesn't work.
    - In the case of JSR168 portlets, if you have a backing file on the portlet (in addition to the portlet implementation as well), that may not work in some circumstances over WSRP. It is best to have the event handlers be in the portlet implementation class and avoid the use of backing files for JSR168 portlets.
    If none of those things help you, my suggestion would be to post a sample .portlet file for one of the portlets that is supposed to be receiving the event, as well as the method signature in that portlet's implementation class that is supposed to be receiving the event, and the code which is sending the event that is supposed to be received.
    Kevin

  • Interportlet Communication

    Hi,
    Have a query with regards to the following.
    Appreciate if anyone could advise or correct my understanding:
    For the current project implementation, there are the following portlets from various vendors, using various implementations:
    1) A main portal, with a login portlet implemented using BEA workshop (BeeHive Apache NETUI)
    2) a shopping portlet (product A) implemented using MVC
    3) a checkout portlet (product B) implemented using JSR 168
    A typical user process will be to login, shop and checkout as in the above order.
    The 3 portlets above will need to communicate with each other.
    (a) Interportlet communication
    BEA allows these methods:
    (i) event handlers
    (ii) backing files
    (iii) refresh?
    Question 1: Are the above methods vendor-specific to BEA only?
    Note: Assume all 3 portlets are deployed locally, i.e. with not as remote portlets.
    Question 2: If yes, how can the login portlet "talk" to the other 2 portlets?
    Given that checkout portlet is implemented using JSR 168, does this mean portlet session is the only way of sharing information?
    Question 3: Can event handlers be used for IPC for this scenario, since its the most recommended way by BEA to implement this.
    Understand event handlers are defined in .portlet file. Is this correct?
    Question 4: Can both shopping and checkout portlet be "imported" to Workshop for development?
    Will both of them have .portlet file? If yes, then I would think event handler method can be used?
    Appreciate any advice or feedback.
    Thanks.

    BEA Weblogic Portal 9/10 i m using....
    I have wriiten the code to hide the page using PageBackingContext....
    PageBackingContext pbc = PageBackingContext.getPageBackingContext(getRequest());
    pbc.setvisible(false);

  • Online chat, Aug. 12, n the Portlet Specification (JSR 168)

    The Portlet Specification, JSR 168 ( http://jcp.org/en/jsr/detail?id=168 ), establishes a standard API for creating portlets. It's designed to ensure interoperability between portlets and Java-based portal servers or other Web applications that implement the specification. Learn more about the Portlet Specification, and get questions answered in this chat with Portlet Specification co-lead Alejandro Abdelnur, and Sun ONE Portal Server product manager Adam Abramski. The chat is scheduled for Tuesday, August 12, at 11 A.M.-to-noon Pacific Daylight Time (6:00 P.M.-to-7 P.M. GMT).
    To join the chat on August 12, go to http://developer.java.sun.com/developer/community/chat/index.html and click on "Join the current session".

    The transcript of this chat is now available at http://developer.java.sun.com/developer/community/chat/JavaLive/2003/jl0812.html

  • Online Chat, Aug. 12, on the Portlet Specification (JSR 168)

    The Portlet Specification, JSR 168 ( http://jcp.org/en/jsr/detail?id=168 ), establishes a standard API for creating portlets. It's designed to ensure interoperability between portlets and Java-based portal servers or other Web applications that implement the specification. Learn more about the Portlet Specification, and get questions answered in this chat with Portlet Specification co-lead Alejandro Abdelnur, and Sun ONE Portal Server product manager Adam Abramski. The chat is scheduled for Tuesday, August 12, at 11 A.M.-to-noon Pacific Daylight Time (6:00 P.M.-to-7 P.M. GMT).
    To join the chat on August 12, go to http://developer.java.sun.com/developer/community/chat/index.html and click on "Join the current session".

    The transcript for the chat is now available at http://developer.java.sun.com/developer/community/chat/JavaLive/2003/jl0812.html

  • Does any one develop jsr-168 portlets (jsd portlets) using Jdeveloper ?

    hi
    Thank you for reading my post
    Does any one uses Jdeveloper to build jsr-168 compliant jsf portlets?
    does ADF faces works inside a jsf component or not ?
    Thank you very much

    So we should be hopeful to get a jsr-168 portlet development next few weeks.
    but i think if oracle make its community informed about such processes , it give a big chance to users to select its IDE,..
    Thanks

  • Portlet JSR 168

    hi ..
    I can add navigation parameters to portlet JSR 168 by adding the parameters in oracle-portlet.xml .. where it is the only way for portlet communication .
    now I create JSF Application and expose it to JSR 168 -by adding portlet.xml file - it work good but I want to add navigation parameters for this portlet , how ??
    thanks

    You need to deploy to a WLS and then register the WSRP producer to your consuming application.
    You can read my paper about portlets: http://www.yonaweb.be/sites/default/files/ipc_0.pdf
    It explains the basic on how to create and consume portlets in WebCenter 11.1.1.3

  • JSR 168 invocation protocol

    Greetings,
    I've a question about JSR 168 portlets, in many places I've read that it is considered local portlets while WSRP portlets are considered remote.
    The question is does JSR 168 uses any other protocol than HTTP and if not, does the term local still apply?
    regards

    I'm not completely familiar with all of this but I'll give it a try :
    * 1. In Oracle portal, does the concept of a "local" portlet exist where the communication between the portal and the portlet container is in memory or is it that all such communication uses remote protocols such as HTTP(S)?
    Oracle Portal communicates with the producer using wsrp. There is no in memory communication when both the Portal application and the producer reside on the same server. The same applies for providers (JPDK), they use SOAP for communication.
    * 2. Is there any performance gain when deploying the portal container on the same application server as the portal?
    That's difficult to say. Web Apps can consume a lot of resources and could potentially affect the performance of the Portal when they reside on the same host. And heavy usage of the Portal can also affect the Web Applications. These things will not happen when they are on separate hosts with a high speed network between them.
    The beauty of having a separate host for web applications is that they will not influence the Portal host, the software can be easily upgraded with affecting the Portal software much and so on.
    * 3. Is there any difference between the method of communication between the portal and the two different types of containers; i.e. PDK and JSR?
    Yes, PDK uses SOAP while JSR uses WSRP
    * 4. Is there any significant performance gain in implementing PDK portlets over JSR portlets?
    I don't have any performance figures for that.
    PDK and JSR cannot be compared that easily. Whilst both allow for Portlet development in Java, the PDK is far more richer than JSR at the moment. The downside is that PDK is proprietary - it can only be used with Oracle Portal.
    Hope this helps,
    Erik

  • JSR 168 support on production environment??

    Hello Oracle people,
    when are you going to support JSR168 portlets in you Oracle Portal?? Where is the money customers pay you for working? not enough? What do we do with this piece of closed source box you gave us if you can not be ahead many other open source (free) products? Can you stand the pace? you say "we support standards"... and I see you are falling behind.

    you should be demanded because of the way you assure support of the JSR168 in your executive brochures... Any layer out there who can help?
    Look this question and how Oracle answers:
    Does Oracle Portal support JSR 168 and WSRP?
    Oracle has been an active member of the standards bodies and been instrumental in the process of defining these portal interoperability standards:
    * JSR-168: Defines how Java developers should write portlets using standard APIs.
    * OASIS WSRP (Web Services for Remote Portlets): Defines the communication protocol between a portal application and the remote portlet./li>
    Oracle fully supports the JSR 168 portlet specification. You can develop JSR 168 portlets using the Java Portlet Wizard, a JDeveloper plug-in. You can also deploy JSR 168 portlets to Oracle's or any other vendor's JSR 168 Java Portlet Container. Portlets deployed to Oracle's container are exposed to portals through WSRP, and can be registered against any portal vendor's WSRP compliant portal. The current version of Oracle Portal (Oracle Portal 10g Release 2 (10.1.2)) does not support WSRP, but you can register and test standard portlets using the OracleAS Portal Developer's Preview for Portlet Standards or the hosted WSRP compliant portal on http://portalstandards.oracle.com. You find additional information about Oracle and Portal standards on http://portalstandards.oracle.com.
    When there is a simple answer: NO we do not support the JSR168 in Oracle Portal. We do a lot of other things... see this and that. But sadly our Oracle Portal does not support it, you can test a preview version but if it crashes its your problem (we proudly do very expensive closed source :).

  • JSR-168 Support

    Do we have any plans to resume support for JSR-168 portlets to extend integration with other portal platforms besides WCI and WLP?

    you should be demanded because of the way you assure support of the JSR168 in your executive brochures... Any layer out there who can help?
    Look this question and how Oracle answers:
    Does Oracle Portal support JSR 168 and WSRP?
    Oracle has been an active member of the standards bodies and been instrumental in the process of defining these portal interoperability standards:
    * JSR-168: Defines how Java developers should write portlets using standard APIs.
    * OASIS WSRP (Web Services for Remote Portlets): Defines the communication protocol between a portal application and the remote portlet./li>
    Oracle fully supports the JSR 168 portlet specification. You can develop JSR 168 portlets using the Java Portlet Wizard, a JDeveloper plug-in. You can also deploy JSR 168 portlets to Oracle's or any other vendor's JSR 168 Java Portlet Container. Portlets deployed to Oracle's container are exposed to portals through WSRP, and can be registered against any portal vendor's WSRP compliant portal. The current version of Oracle Portal (Oracle Portal 10g Release 2 (10.1.2)) does not support WSRP, but you can register and test standard portlets using the OracleAS Portal Developer's Preview for Portlet Standards or the hosted WSRP compliant portal on http://portalstandards.oracle.com. You find additional information about Oracle and Portal standards on http://portalstandards.oracle.com.
    When there is a simple answer: NO we do not support the JSR168 in Oracle Portal. We do a lot of other things... see this and that. But sadly our Oracle Portal does not support it, you can test a preview version but if it crashes its your problem (we proudly do very expensive closed source :).

  • Integration between portlets using JSR 168

    I've developed 3 portlets but I want them talking with each other, in a way that is JSR 168 compliant.
    For example, I have a search box portlet, where the user can only type search expressions, a search result portlet, where the user will see search results, and a search summary portlet, where the user will see statistics about search.
    First question: how can I send data from one portlet to another? Is HttpSession a safe place to share data between portlets? Can I trust that all containers will create a single HttpSession per user?
    Second question: how can one portlet force refresh of another, or even hide or show up another portlet?

    Well it is a very smart question..
    To be more precise i don't think it is been properly answered with
    JSR 168 specification.
    However,there few best practises followed in order to achieve it.
    The idea of using HttpSession (PortletSession.getHttpSession() with Usage of AJAX) as you said it certainly one of the things which evryone would think.
    http://www.ibm.com/developerworks/websphere/library/techarticles/0604_scott/0604_scott.html
    http://www.doc.ic.ac.uk/~mo197/portlets/portlet_messaging/
    http://wiki.java.net/bin/view/Portlet/JSR168FAQ(checkout the last part of the document)
    http://www.michaelgilfix.com/techblog/2007/01/27/ajax-and-portlets
    http://www.theserverside.com/news/thread.tss?thread_id=35385
    http://blogs.jboss.com/blog/jviet/2005/07/14/The_recurring_interportlet_communication_dilemna.txt
    http://portlets.blogspot.com/2005/07/inter-portlet-communication-library.html
    http://docs.sun.com/app/docs/doc/819-5942/6n807tpc2?a=view
    http://www.oracle.com/technology/products/ias/portal/pdf/oow06_S281756_jsr168ajax.pdf
    http://docs.jboss.org/jbportal/v2.2/reference-guide/en/html/ipc.html#d0e1308
    However,SUN is trying to revise it in their next specification JSR 286.
    http://jcp.org/en/jsr/detail?id=286,
    http://blogs.sun.com/nav/entry/understanding_portlet_2_0_jsr1,
    http://apachecon.com/2006/US/presentations/FR8/FR8-JSR-286-updated.pdf
    Second Question:how can one portlet force refresh >of another, or even hide or show up another portlet?As discussed earlier Usage of AJAX / (And storing Common Credentials in a Bean which scoped to HttpSession) in the dependent portlet would be quite handy in the above discussed case.
    Hope this might help :)
    REGARDS,
    RaHuL

  • Error while deploying a JSR 168 portlet developed in JDeveloper 10.1.3.2

    When deploying a JSR 168 portlet created using JDeveloper 10.1.3.2 (Web Center Suite edition), I get the error :
    "Shared library "oracle.wsrp" could not be found."
    Error Log:
    ---- Deployment started. ---- Sep 20, 2007 9:31:42 AM
    Target platform is Oracle Application Server 10g 10.1.3 (PolestarAppServerConnection).
    Wrote WAR file to C:\Projects\eAlliance\JSR168\ViewController\deploy\jsr168.war
    Wrote EAR file to C:\Projects\eAlliance\JSR168\ViewController\deploy\jsr168.ear
    Backing up generic archive file :/C:/Projects/eAlliance/JSR168/ViewController/deploy/jsr168_generic.ear
    Creating WSDLs for the WSRP Application
    WSDLs for the WSRP Application have been created
    Uploading file jsr168.ear ...
    Uploading file jsr168.ear ...
    Application Deployer for jsr168 STARTS.
    Copy the archive to /home/soahome/orasoa/j2ee/home/applications/jsr168.ear
    Initialize /home/soahome/orasoa/j2ee/home/applications/jsr168.ear begins...
    Unpacking jsr168.ear
    Done unpacking jsr168.ear
    Unpacking jsr168.war
    Done unpacking jsr168.war
    Initialize /home/soahome/orasoa/j2ee/home/applications/jsr168.ear ends...
    Starting application : jsr168
    Initializing ClassLoader(s)
    application : jsr168 is in failed state
    Operation failed with error:
    Shared library "oracle.wsrp" could not be found.
    Deployment failed
    Elapsed time for deployment: 39 seconds
    #### Deployment incomplete. #### Sep 20, 2007 9:32:21 AM
    Steps To recreate the error:
    1)Create a new Application in JDeveloper
    2)Click "New" in "ViewController" and click on WebTier->Portlets->Standards based(JSR 168) from the wizard.
    3)Go thru JSR 168 Portlet wizard steps 1 thru' 8 accepting all defaults.
    4)Click "New" in "ViewController" and click on General->Deployment Profiles->WAR File from the wizard.
    5)Enter a name and hit OK. Then in the "WAR Deployment Profile Properties" page, select "Specify J2EE Web Context Root" and enter the name similar to what is in the "Enterprise application name" text box in the same screen. Hit OK.
    6)Right click on the deploy file created under "Resources" and select "Deploy to AppServer" (I am deploying to a remote 10.1.4 Portal Server that has already been configured in my connections tab.
    7)Note the above noted error message in the Deployment Log tab.
    Can you give me any suggestions?
    Thanks,
    Bipin Raj

    Does the \j2ee\home\shared-lib directory contain a directory oracle.wsrp?
    Does the <OC4J_HOME>/j2ee/home/config/server.xml file contain a shared-lib declaration for oracle.wsrp?
    <shared-library name="oracle.wsrp" version="1.0">
    <code-source path="wsrp-container.jar"/>
    <code-source path="wsrp-types.jar"/>
    <code-source path="wsrp-jaxb.jar"/>
    <code-source path="jaxb-api.jar"/>
    <code-source path="jaxb-impl.jar"/>
    <code-source path="jaxb-libs.jar"/>
    <code-source path="namespace.jar"/>
    <code-source path="xsdlib.jar"/>
    <code-source path="relaxngDatatype.jar"/>
    <import-shared-library name="oracle.gdk"/>
    <import-shared-library name="oracle.xml"/>
    <import-shared-library name="oracle.jdbc"/>
    <import-shared-library name="oracle.cache"/>
    </shared-library>

Maybe you are looking for

  • Voice Memos app not working - IOS 4 upgrade

    I upgraded my 32Gig 3GS to IOS4 on Monday and now my Voice Memos app isn't working. I can playback existing recordings but am unable to record new ones. Anyone have a similar experience?

  • Icons Not displaying correctly in Bridge 6

    in bridge 6. Image Icons in layered psd images do not show changes I have made – for example added or deleted layers. Also some image icon as above shows just the first layer, not added layers. I open the image in cs6 and it is correct.  The correct

  • Performance Report

    Hello, could someone explain me how I can run an Performance Report for my Clients for an specified collection! (I do not have OPS Manager configured/installed)? The reason is that my team leader is asking me that some VIPs are complains about networ

  • 100% Wet Reverb doesn't seem to work, help?

    I have 2 tracks and I want 1 to be 100% wet reverb only. I can't seem to get it working and need some help. This is the track with the bus #3 to the Space Designer This is the mixer ... I'm running version LPX 10.0.4 on Mavericks (10.9) Any help is a

  • ClassCast Exception at oracle.sql.BLOB.createTemporary

    Hi... I am facing a problem that when I am trying to open a temporary BLOB, I am getting a ClassCastException. Below is a part of stack trace: java.lang.ClassCastException: weblogic.jdbc.rmi.SerialConnection_weblogic_jdbc_rmi_internal_ConnectionImpl_