Weblogic realm authentication failure getting connection from pool

We are getting this error when we try to get a connection from the
pool for a Tx Data Source. We are successfully getting connections
from a (non-Tx) Data Source.
java.lang.SecurityException: Authentication for user Fitness_demo
denied in realm weblogic
at weblogic.security.acl.Realm.authenticate(Realm.java:212)
at weblogic.security.acl.Realm.getAuthenticatedName(Realm.java:233)
at weblogic.security.acl.internal.Security.authenticate(Security.java:125)
at weblogic.security.acl.Security.doAsPrivileged(Security.java:481)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:127)
We have added the DB user as a user in the realm, which usually does
the trick; but in this case it does not. We are using Merant's
JSQLConnect type 2 driver for SQL Server, and we are running on
Solaris. The scenario works fine using Oracle Thin driver on Windows.
Do we need ACL entries or something? We do not have any ACL entries
now.
Thanks,
-wes

We are getting this error when we try to get a connection from the
pool for a Tx Data Source. We are successfully getting connections
from a (non-Tx) Data Source.
java.lang.SecurityException: Authentication for user Fitness_demo
denied in realm weblogic
at weblogic.security.acl.Realm.authenticate(Realm.java:212)
at weblogic.security.acl.Realm.getAuthenticatedName(Realm.java:233)
at weblogic.security.acl.internal.Security.authenticate(Security.java:125)
at weblogic.security.acl.Security.doAsPrivileged(Security.java:481)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:127)
We have added the DB user as a user in the realm, which usually does
the trick; but in this case it does not. We are using Merant's
JSQLConnect type 2 driver for SQL Server, and we are running on
Solaris. The scenario works fine using Oracle Thin driver on Windows.
Do we need ACL entries or something? We do not have any ACL entries
now.
Thanks,
-wes

Similar Messages

  • Get Connection from connection pooling

    Hi,
    I am aware of the fact that to get connection from a connection pool we need to add JNDI name in context.xml of apache tomcat and use it in our application to get connection. I have tested this and it works fine.
    Now, we have 12 servers having free database each having almost 20 small Java applications for different purposes (get data from server database do some business logic and maipulation with data from central database and store on central database) each connecting to central database.
    We were enjoying life till we had almost 8-9 servers but now many times we have connection issues as there are too many connections to central database and servers are going to increase.
    I know my company design is not good but we need some solution.
    I want my Java applications to take database connectivity using connection pooling on servers. My Java applications are standalone applications that do not run in web server. Is this approach fine?
    I searched google for some solution but was unable to find.
    Any pointers would be really helpful.
    I think that since my application is outside web container I am unable to get Context (java:/comp/env). Please give me some pointers on how can i get web server context outside web server.
    Thanks and Regards,
    Vikash Anand.

    Google ( [jndi standalone application|http://www.google.com/search?q=jndi+standalone+application] ).

  • Open script cannot get connection from the brower helper after 15 seconds.

    Error:
    ===
    Open script cannot get connection from the brower helper after 15 seconds. Do you want to continue waiting for the browser to load?
    Please Note:
    ========
    1. I have tried this only on IE
    2. I am running OATS on a Remote desktop
    Situation:
    ======
    Trying to stop the recording
    Try to get xpath of an object using Inspect Path
    Setup details
    ========
    Windows XP 5.1 Service Pack 3, x86
    OpenScript 12.1.0.1.383
    Internet Explorer 8.0.6001.18702
    FireFox 13.0.1
    Mitigation steps done till now:
    ==================
    1. Disabled windows firewall
    2. Disable XSS filter setting
    3. Restarted the ATS services (3 of them)
    4. Run the Open Script Diagnosis Tool (PS: There are 3 errros even after running it. The 3 errros are listed in the workspace_log log file snippet below...)
    Error in worspace_log:
    =============
    To Change setting:
    Go to Tools > Internet Options and Choose Security Tab
    Select the Zone to modify and Press Custom level
    Find Enable XSS filter Setting - Select Disable and click Ok
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Failure found when diagnosing Oracle EBS/Forms Load Testing Forms LT Diagnoser
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Did not auto-fix the problem.
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Suggestion for fixing: Please change your Java proxy setting to Use Browser Settings
    Aprreciate help on this.

    To resolve this, you need to reconfigure the "Oracle Application Testing Suite Helper Service" (OATSHelperSvr) to start as a user who has privledges to run open script tests rather than the default SYSTEM user.
    Reconfiguring the OATSHelperSvr Service:
    1. Open the services panel (Start > Run > services.msc)
    2. Find the Oracle Application Testing Suite Helper Service
    3. Right Click > Properties then select the Log On Tab
    4. Specify an interactive user that has rights to run OpenScript (test by logging in as that user and running tests):
    5. Click OK
    6. Restart the service after dialogs are closed by Right Click > Restart
    7. You should now repeat this process for the "Oracle Application Testing Suite Agent Service" (eLoadAgentMon) Service (Two services in
    total)
    You should now retry running the test in Oracle Test Manager

  • Problem to get Connection from JBoss AS

    PLEASE HELP ME....
    I GOT ERROR WHILE I TRYED TO GET A CONNECTION FROM JBOSS APP. SERVER.
    THE CODE IS
    package com.beo.atlas.common;
    public final class ServiceLocator     {
         private static final String JBOSS_INITIAL_CONTEXT_FACTORY = "org.jnp.interfaces.NamingContextFactory";
         private static final String JBOSS_PROVIDER_URL = "localhost:8080";
         private static final String JBOSS_URL_PKG_PREFIXES = "org.jboss.naming:org.jnp.interfaces";
         public static final String ATLAS_DATASOURCE = "java://myatlasdbpool";
         private static java.util.Hashtable dataSourceCache = null;
         private static ServiceLocator locator = null;
         static     {
              System.out.println("Locator Initializing");
              dataSourceCache = new java.util.Hashtable();
              locator = new ServiceLocator();
         private ServiceLocator()     {     }
         public static ServiceLocator newInstance()     {
              System.out.println("Returning the Locator Object");
              return locator;
         public java.sql.Connection getDBConnection() throws java.sql.SQLException,javax.naming.NamingException     {
              System.out.println("Getting Data base Connection....");
              if(dataSourceCache.containsKey(ATLAS_DATASOURCE))     {
                   System.out.println("Trying to get Connection from CACHE...");
                   System.out.println("Returning Connection Object from cache.");
                   return (java.sql.Connection)dataSourceCache.get(ATLAS_DATASOURCE);
              System.out.println("FAILED to get Connection from CACHE");
              System.out.println("Trying to create new Connection...");
              java.util.Properties props = new java.util.Properties();
              props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,JBOSS_INITIAL_CONTEXT_FACTORY);
              props.put(javax.naming.Context.PROVIDER_URL,JBOSS_PROVIDER_URL);
              props.put(javax.naming.Context.URL_PKG_PREFIXES, JBOSS_URL_PKG_PREFIXES );
              javax.naming.InitialContext context = new javax.naming.InitialContext(props);
              Object o = context.lookup(ATLAS_DATASOURCE);
              System.out.println("Object Created...");
              javax.sql.DataSource dataSource = null;
              try     {
              dataSource = (javax.sql.DataSource)javax.rmi.PortableRemoteObject.narrow(o,javax.sql.DataSource.class);
              }catch(Exception e)     {     
              java.sql.Connection con = dataSource.getConnection();
              dataSourceCache.put(ATLAS_DATASOURCE,con);
              System.out.println("Returning new Connection Object.");
              return con;          
    ERROR
    Locator Initializing
    Returning the Locator Object
    Getting Data base Connection....
    FAILED to get Connection from CACHE
    Trying to create new Connection...
    Object Created...
    java.lang.ClassCastException
    at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(Unknown S
    ource)
    at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
    at com.beo.atlas.common.ServiceLocator.getDBConnection(ServiceLocator.ja
    va:56)
    at AtlasClient.printData(AtlasClient.java:16)
    at AtlasClient.main(AtlasClient.java:8)
    Caused by: java.lang.ClassCastException: org.jnp.interfaces.NamingContext
    ... 5 more

    I've got the same problem. Working with JBoss 4.0.3 and Tomcat 5.5. The lookup goes fine and returns an object of type remote home, however when I perform the narrow() I get ClassCastException. I'm sure the client and the server have got the same file version as I built from the same source.
    [error]
    Caused by: java.lang.ClassCastException
         at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
         at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
    [error]

  • BC4J: How get Connection from Application Module

    I've written a custom method for my Application Module for using by the client tier. In this method I call a JPUblisher created class, that accesses a PL/SQL procedure. For this JPublisher created class I need a connection context. The class calls DefaultContext.getDefaultContext() but that seems to be null.
    How can I get the current Connection of the Application Module, so that I can create a DefaultContext?
    Unfortunately Transaction has no getConnection method.
    Thanks,
    Robert

    We don't make the Connection directly available because in some sense it's a rope on which you can hang yourself if you are not careful. Since BC4J AppModules are most often used from a pool, and you might be using connection pooling in addition to application module pooling, in general it is not safe to get hold of the raw JDBC connection and "hang onto it".
    If you make careful use to always get the current JDBC connection before you use it, and not try to cache it, then you should be ok. Often, you can avoid the need to get the raw JDBC connection by calling getDBTransaction().createPreparedStatement(...) or the analogous createCallableStatement() or createStatement() that are also on the DBTransaction interface.
    Here is a little function you can add to your application module impl class to retrieve the Connection:
      private Connection getCurrentConnection() {
        Statement st = null;
        try {
          st = getDBTransaction().createStatement(0);
          return st.getConnection();
        catch (SQLException s) {
          s.printStackTrace();
          return null;
        finally {
          if (st != null) try { st.close(); } catch (SQLException s2) {}
      }It basically creates a (dummy) statement, gets the current connection from the statement, then closes the statement.
    I tried using this in a custom method in an AppModuleImpl class that invoked a JPublisher-create package-wrapper class like this:
      public void callStoredProc() {
        try {
          // Empservice is package wrapper class created by JPublisher
          Empservice e = new Empservice(getCurrentConnection());
          BigDecimal sal = e.lookupsalary(new BigDecimal(7369));
          System.out.println(sal);
        catch (SQLException s) {
          s.printStackTrace();
      }and it works for me.

  • OSR registry not getting connected from Jdeveloper 10.1.3.3.

    Hi,
    i am getting below error while connecting to OSR registry link. i.e, while making a new UDDI connection from JDev.
    Testing connection with no proxy...
    Contacting http://calvin.fcoracle.com:7800/registry/uddi/web...
    The inquiry endpoint could not be contacted. Test failed.
    Unsupported response content type "text/html; charset=UTF-8", must starts with "text/xml". Response was:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <META http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>Registry Control 10.1.3.1 - Home</title>
    <base href="http://calvin.fcoracle.com:7800/registry/uddi/webdata/"/>
    <link rel="stylesheet" type="text/css" href="script/uddi.css"/>
    <script language="JavaScript" src="script/cookies.js"></script>
    <script language="JavaScript" src="script/wf.js"></script>
    <script language="JavaScript" src="script/uddi.js"></script>
    <script language="JavaScript" src="script/tree.js"></script>
    <script language="JavaScript" src="script/init.js"></script>
    <script language="JavaScript" src="script/ctxmenu2.js"></script>
    <script language="JavaScript" src="script/sizer.js"></script>
    <script language="JavaScript" src="script/tabswitch.js"></script>
    <script language="JavaScript" src="script/fswitch.js"></script>
    <script language="JavaScript" src="script/tree_scroller.js"></script>
    <noscript>???pageHeader_notSupportJavascript???</noscript>
    </head>
    <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" onResize="redrawScrollable()">
    <table>
    <form name="form" method="POST" >
    <input type="hidden" name="actionId"/>
    <input type="hidden" name="targetTask"/>
    <input type="hidden" name="targetDepth"/>
    <input type="hidden" name="redirect"/>
    </table>
    <div style="position:absolute;top:0px;left:50px;width:350px;height:50px;display:none;" id="alertDiv" name="alertDiv"></div>
    <div style="position:absolute;top:0px;left:0px;width:10px;height:10px;display:none;background:url('gfx/tree/selector.gif');border:1px solid #606060;" id="selectorDiv" name="selectorDiv"></div>
    <script language="JavaScript">
    var navObjs=new Array();
    navObjs[0]='mbrowse';
    navObjs[1]='msearch';
    navObjs[2]='mpublish';
    </script>
    <!-- using localizable script, fixed by utdanh -->
    <script language="JavaScript" src="script/naviswitch.js"></script>
    <!-- page content start -->
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td align="left" valign="middle">
    <img src="gfx/logo/uddi_logo.gif" alt="Registry Control 10.1.3.1" width="335" height="33" border="0" >
    </td>
    <td align="right" valign="bottom" width="100%" nowrap>
    <span class="registryName">OracleAS Service Registry</span> 
    <br>
    <a href="javascript:submitPage('form','/limits','root##834',-1,false);" title=""> Licensing Information.</a>
    </td>
    </tr>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="100%" valign="bottom" align="right" nowrap>
    <a href="http://calvin.fcoracle.com:7800/registry/uddi/web#Main" title="Go go the main content of page">Skip to content</a>  
    <a href="javascript:submitToURL('form','/createAccount','root##835',0,false,'http://calvin.fcoracle.com:7800/registry/uddi/web');" title="Register"> Register</a>
     
    </td>
    <td valign="bottom" nowrap>
    <a href="javascript:submitToURL('form','','root#login#836',-1,false,'http://calvin.fcoracle.com:7800/registry/uddi/web');" title="Login"> Login</a>
     
    </td>
    <td valign="bottom">
    <a href="javascript:submitPage('form','','root#refresh#837',-1,false);"><img src="gfx/icon/refresh.gif" style="border: 0;" title="Refresh page content" alt="Refresh" width="16" height="16" align="absmiddle" border="0"/></a>
    </td>
    <td valign="bottom">
     <a href="../doc/index.html" target="_blank"><img src="gfx/icon/help.gif" width="16" height="16" border="0" alt="Help" title="Registry Documentation (Open link in a new window)" align="absmiddle">
    </a>
    </td>
    </tr>
    <tr>
    <td colspan="4">
    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="headerSeperateLine">
    <tr>
    <td width="34" height="8"><img src="gfx/tabs/beginLine.gif" alt="" width="34" height="8" align="middle"/></td>
    <td width="100%" height="8" class="seperateLine"><img src="gfx/0.gif" alt="" width="1" height="1" border="0"/></td>
    <td width="34" height="8"><img src="gfx/tabs/endLine.gif" alt="" width="34" height="8" align="middle"/></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td>
      
    <a href="javascript:submitPage('form','','root##838',0,false);"> Home</a>
    </td>
    <td colspan="3" align="right" class="welcomeMessage" nowrap>
    Welcome 
    Guest 
    </td>
    </tr>
    </table>
    <div class="headerHorizon">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tbody>
    <tr>
    <td class="lightHeaderHorizon"><img src="gfx/0.gif" alt=""></td>
    </tr>
    </tbody>
    </table>
    </div>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td class="darkHeaderHorizon"><img src="gfx/0.gif" alt=""></td>
    </tr>
    </table>
    <table border="0" width="100%" border="0" bordercolor="#6600cc" cellpadding="0" cellspacing="0" id="UIheaderTable" name="UIheaderTable" >
    <tr>
    <td colspan="4">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td width="3" height="21" class="menuTweenTopLeftTabActive" name="L_mbrowse" id="L_mbrowse" background="gfx/tabs/menu_tween_top_left_1.gif" ><img src="gfx/0.gif" alt="" width="3" height="1" border="0"></td>
    <td align="center" nowrap="nowrap" name="B_mbrowse" id="B_mbrowse" class="menuTabActive">
    <img src="gfx/0.gif" alt="" width="5" height="1" border="0"/> 
    <a href="javascript:navSave('mbrowse');submitPage('form','/browseTaxonomy','root##839',0,false);">Browse</a> 
    <img src="gfx/0.gif" alt="" width="5" height="1" border="0"/>
    </td>
    <td width="3" height="21" class="menuTweenTopRightTabActive" name="R_mbrowse" id="R_mbrowse" background="gfx/tabs/menu_tween_top_right_1.gif"><img src="gfx/0.gif" alt="" width="3" height="1" border="0"></td>
    <td width="3" height="21" class="menuTweenTabInactive" name="L_msearch" id="L_msearch" background="gfx/0.gif"><img src="gfx/0.gif" alt="" width="3" height="1" border="0"></td>
    <td align="center" nowrap="nowrap" name="B_msearch" id="B_msearch" class="menuTabInactive">
    <img src="gfx/0.gif" alt="" width="5" height="1" border="0"/> 
    <a href="javascript:navSave('msearch');submitPage('form','/simpleFind','root##840',0,false);">Search</a> 
    <img src="gfx/0.gif" alt="" width="5" height="1" border="0"/>
    </td>
    <td width="3" height="21" class="menuTweenTabInactive" name="R_msearch" id="R_msearch" background="gfx/0.gif"><img src="gfx/0.gif" alt="" width="3" height="1" border="0"></td>
    <td width="3" height="21" class="menuTweenTabInactive" name="L_mpublish" id="L_mpublish" background="gfx/0.gif"><img src="gfx/0.gif" alt="" width="3" height="1" border="0"></td>
    <td align="center" nowrap="nowrap" name="B_mpublish" id="B_mpublish" class="menuTabInactive">
    <img src="gfx/0.gif" alt="" width="5" height="1" border="0"/> 
    <a href="javascript:navSave('mpublish');submitToURL('form','/publish','root##841',0,false,'http://calvin.fcoracle.com:7800/registry/uddi/web');">Publish</a> 
    <img src="gfx/0.gif" alt="" width="5" height="1" border="0"/>
    </td>
    <td width="3" height="21" class="menuTweenTabInactive" name="R_mpublish" id="R_mpublish" background="gfx/0.gif"><img src="gfx/0.gif" alt="" width="3" height="1" border="0"></td>
    <td width="100%" class="menuTabInactive"><img src="gfx/0.gif" alt="" border="0"></td>
    </tr>
    <tr>
    <td colspan="3" class="menuUnderTabActive" name="U_mbrowse" id="U_mbrowse"><img src="gfx/0.gif" alt="" width="3" height="1" border="0"></td>
    <td colspan="3" class="menuUnderTabInactive" name="U_msearch" id="U_msearch"><img src="gfx/0.gif" alt="" border="0"></td>
    <td colspan="3" class="menuUnderTabInactive" name="U_mpublish" id="U_mpublish" ><img src="gfx/0.gif" alt="" width="3" height="1" border="0"></td>
    <td colspan="3" class="menuUnderTabInactive"><img src="gfx/0.gif" alt="" border="0"></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td height="24" colspan="3" class="horizMainMenu">
    <div name="mbrowse" id="mbrowse" style="display:block">
     
    </div>
    <div name="msearch" id="msearch" style="display:none">
    <a href="javascript:submitPage('form','/findBusiness','root##842',0,false);" title="Search business"> Business</a>
     <img src="gfx/misc/separator.gif" alt="" width="7" height="7" border="0"> 
    <a href="javascript:submitPage('form','/findService','root##843',0,false);" title="Search services"> Services</a>
     <img src="gfx/misc/separator.gif" alt="" width="7" height="7" border="0"> 
    <a href="javascript:submitPage('form','/findBinding','root##844',0,false);" title="Search bindings"> Bindings</a>
     <img src="gfx/misc/separator.gif" alt="" width="7" height="7" border="0"> 
    <a href="javascript:submitPage('form','/findTModel','root##845',0,false);" title="Search tModels"> tModels</a>
     <img src="gfx/misc/separator.gif" alt="" width="7" height="7" border="0"> 
    <a href="javascript:submitPage('form','/directGet','root##846',0,false);" title="Direct get"> Direct get</a>
     <img src="gfx/misc/separator.gif" alt="" width="7" height="7" border="0"> 
    <a href="javascript:submitPage('form','/findWsdl','root##847',0,false);" title="Search WSDL"> WSDL</a>
     <img src="gfx/misc/separator.gif" alt="" width="7" height="7" border="0"> 
    <a href="javascript:submitPage('form','/findXML','root##848',0,false);" title="Search XML"> XML</a>
     <img src="gfx/misc/separator.gif" alt="" width="7" height="7" border="0"> 
    <a href="javascript:submitPage('form','/findXsd','root##849',0,false);" title="Search XSD"> XSD</a>
     <img src="gfx/misc/separator.gif" alt="" width="7" height="7" border="0"> 
    <a href="javascript:submitPage('form','/findXslt','root##850',0,false);" title="Search XSLT"> XSLT</a>
     
    </div>
    <div name="mpublish" id="mpublish" style="display:none">
    <a href="javascript:submitToURL('form','/publish','root##851',0,false,'http://calvin.fcoracle.com:7800/registry/uddi/web');" title="Publish"> Publish</a>
     <img src="gfx/misc/separator.gif" alt="" width="7" height="7" border="0"> 
    <a href="javascript:submitToURL('form','/subscriptions','root##852',0,false,'http://calvin.fcoracle.com:7800/registry/uddi/web');" title="Subscriptions"> Subscriptions</a>
     <img src="gfx/misc/separator.gif" alt="" width="7" height="7" border="0"> 
    <a href="javascript:submitToURL('form','/custody','root##853',0,false,'http://calvin.fcoracle.com:7800/registry/uddi/web');" title="Custody transfer"> Custody transfer</a>
     <img src="gfx/misc/separator.gif" alt="" width="7" height="7" border="0"> 
    <a href="javascript:submitToURL('form','/publishWsdl','root##854',0,false,'http://calvin.fcoracle.com:7800/registry/uddi/web');" title="Publish WSDL"> WSDL</a>
     <img src="gfx/misc/separator.gif" alt="" width="7" height="7" border="0"> 
    <a href="javascript:submitToURL('form','/publishXML','root##855',0,false,'http://calvin.fcoracle.com:7800/registry/uddi/web');" title="Publish XML"> XML</a>
     <img src="gfx/misc/separator.gif" alt="" width="7" height="7" border="0"> 
    <a href="javascript:submitToURL('form','/publishXsd','root##856',0,false,'http://calvin.fcoracle.com:7800/registry/uddi/web');" title="Publish XSD"> XSD</a>
     <img src="gfx/misc/separator.gif" alt="" width="7" height="7" border="0"> 
    <a href="javascript:submitToURL('form','/publishXslt','root##857',0,false,'http://calvin.fcoracle.com:7800/registry/uddi/web');" title="Publish XSLT"> XSLT</a>
     
    </div>
    </td>
    </tr>
    <tr>
    <td height="10" colspan="4" background="gfx/table/sh.gif"><img src="gfx/0.gif" alt="" width="1" height="10" border="0"></td>
    </tr>
    </table>
    <table width="100%" border="0">
    <tr><td class="DialogOffset_5px">
    </td> </tr> </table>
    <!-- normal frame header begin -->
    <div class="DialogOffset_5px">
    <table border="0" bordercolor="navy" width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="10" height="30" background="gfx/table/bl.gif" valign="top"><img src="gfx/table/cc01.gif" alt="" width="10" height="30" border="0"></td>
    <td height="30" width="100%" class="frameTop" background="gfx/table/hdr_bg.gif" nowrap><div class="DialogName" style="float:left">Oracle Application Server Service Registry </div>
    </td>
    <td width="10" height="30" valign="top" background="gfx/table/br.gif"><img src="gfx/table/c02.gif" alt="" width="10" height="10" border="0"></td>
    <td width="10" height="30" valign="top" background="gfx/table/sv.gif"><img src="gfx/table/sc02.gif" alt="" width="10" height="10" border="0"></td>
    </tr>
    <tr>
    <td width="10" background="gfx/table/bl.gif"><img src="gfx/0.gif" alt="" width="10" height="305" border="0"></td>
    <td height="10" valign="top" class="DialogContent" name='normalDialogPane' id='normalDialogPane'><!-- normal frame header end -->
    <div class="mainDialogContent">
    <div>
    <!-- anchor to quickly Skip to Content -->
    <a name="Main"></a> <!-- normal frame header end -->
    <p class="horizontalSpace">
    <ul class="bigtitle">
    <li style="width:80%"><h2 style="padding:0 !important;">Oracle Application Server Service Registry 10.1.3.1</h2></li>
    <li style="text-align:right"><a class="docLink" href="javascript:void(0);" onClick='window.open("http://calvin.fcoracle.com:7800/registry/uddi/web/../doc/stepbystep/stepbystep.html","","scrollbars=yes,width=390, height=535, resizable=yes")'>Registry Step By Step Guide</a>
    <br/>
    <a href="javascript:submitPage('form','/about','root##804',-1,false);" title=""> About Oracle Registry</a>
    </li>
    <br/>
    </ul>
    </p>
    <p class="horizontalSpace">Oracle Application Server Service Registry is the most complete and proven business services registry providing a foundation for the governance and lifecycle management of your business services. The Registry provides you with what you need to obtain enterprise-wide insight, control and economic leverage of your organization's business services assets. Much more than just a UDDI registry, the Registry captures and makes discoverable business service descriptions into a centrally managed, reliable and searchablelocation, becoming the system of record for your business services<br/>
    Oracle Application Server Service Registry provides two user interfaces.
    </p>
    <table width="100%" border="0">
    <tr>
    <td valign="top" width="50%"> <h3 class="horizontalSpace">Registry Control</h3>
    <ul class="list1">
    <li>Using the <b>Registry Control</b> users can browse and publish registry content, create subscription and perform ownership changes. The Registry Control is the primary console for administrators to perform registry management.</li>
    <li><h4 class="horizontalSpace">Getting Started with the Registry Control</h4></li>
    <li>
    <b>Register</b> - <a href="javascript:submitToURL('form','/createAccount','root##805',0,false,'http://calvin.fcoracle.com:7800/registry/uddi/web');">Register</a> so that you can later publish business service content to the registry
    </li>
    <li>
    <b>Login</b> - <a href="javascript:submitToURL('form','','root#login#806',-1,false,'http://calvin.fcoracle.com:7800/registry/uddi/web');">Login</a> to publish content to the registry
    </li>
    <li>
    <b>Browse</b> - <a href="javascript:navSave('mbrowse');submitPage('form','/browseTaxonomy','root##807',0,false);">Browse</a> registry content using enterprise taxonomies
    </li>
    <li>
    <b>Search</b> - <a href="javascript:navSave('msearch');submitPage('form','/simpleFind','root##808',0,false);">Search</a> registry content including services, service providers, service endpoints and interfaces, and business service artifacts
    <ul class="vlist2">
    <li><a href="javascript:navSave('msearch');submitPage('form','/findBusiness','root##809',0,false);" title="Search business"> Business </a></li>
    <li><a href="javascript:navSave('msearch');submitPage('form','/findService','root##810',0,false);" title="Search services"> Services </a></li>
    <li><a href="javascript:navSave('msearch');submitPage('form','/findBinding','root##811',0,false);" title="Search bindings"> Bindings </a></li>
    <li><a href="javascript:navSave('msearch');submitPage('form','/findTModel','root##812',0,false);" title="Search tModels"> tModels </a></li>
    <li><a href="javascript:navSave('msearch');submitPage('form','/directGet','root##813',0,false);" title="Direct get"> Direct get </a></li>
    <li><a href="javascript:navSave('msearch');submitPage('form','/findWsdl','root##814',0,false);" title="Search WSDL"> WSDL </a></li>
    <li><a href="javascript:navSave('msearch');submitPage('form','/findXML','root##815',0,false);" title="Search XML"> XML </a></li>
    <li><a href="javascript:navSave('msearch');submitPage('form','/findXsd','root##816',0,false);" title="Search XSD"> XSD </a></li>
    <li><a href="javascript:navSave('msearch');submitPage('form','/findXslt','root##817',0,false);" title="Search XSLT"> XSLT </a></li>
    Pls. help me out with this..
    Rgds,
    Nikhil

    Hi,
    Yes, I am able to open the url and the results are:
    <?xml version="1.0" encoding="utf-8" ?>
    - <definitions name="UDDI_API_V3" targetNamespace="urn:uddi-org:api_v3generated/" xmlns:tns="urn:uddi-org:api_v3generated/" xmlns="http://schemas.xmlsoap.org/wsdl/">
    <import namespace="urn:uddi-org:api_v2" location="http://calvin.fcoracle.com:7800/registry/uddi/inquiry/2.0/wsdl" />
    <import namespace="urn:uddi-org:api_v3" location="http://calvin.fcoracle.com:7800/registry/uddi/inquiry/3.0/wsdl" />
    <import namespace="urn:uddi-org:inquiry" location="http://calvin.fcoracle.com:7800/registry/uddi/inquiry/1.0/wsdl" />
    </definitions>
    Did u get any clue to this now what might be the problem? Any services are down?
    Rgds,
    Nikhil

  • How to get connection from TopLink

    Hi All,
    I am facing problem in production while getting connection through JNDI.
    Since i need some result from the view and some other data for business functionality. My toplink connection is working fine....but when i try to get connection through JNDI its failing because of network issues or more connection is opened in DB side. But toplink connection is working fine.
    So i want to use the toplink connection instead of JNDI to get my result.
    For that i used all the solution given in the forum to get the connection from top link. But when i using those thing it shows the method are deprecated.
    import oracle.toplink.internal.sessions.UnitOfWorkImpl; --- In this package all the methods are deprecated so i used this package (import oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl;)
    UnitOfWork uow = getSessionFactory().acquireUnitOfWork();
    uow.beginEarlyTransaction();
    connection = ((UnitOfWorkImpl)uow).getAccessor().getConnection();
    import oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl;-----
    when i used this package i am getting below exception
    08/12/21 09:58:20 java.lang.ClassCastException: oracle.toplink.internal.sessions.UnitOfWorkImpl
    08/12/21 09:58:20      at mof.egov.portal.POMasterDetailSessionEJBBean.checkValidSupplier(POMasterDetailSessionEJBBean.java:2207)
    08/12/21 09:58:20      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    08/12/21 09:58:20      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    08/12/21 09:58:20      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    08/12/21 09:58:20      at java.lang.reflect.Method.invoke(Method.java:585)
    Anyone help me to resolve the issues.
    Note : I am using, JDeveloper 10.1.3.3, EJB 3.0 (Stateless Session), TopLink
    Thanks & Regards
    VB

    Vimilan,
    Hi, try the following JEE snippet of EclipseLink code, the connection code you are using is for non-EE (SE EntityManagers - I received the same CCE as you in the past).
    [http://wiki.eclipse.org/EclipseLink/Examples/JPA/EMAPI#Getting_a_DataSource_from_an_EntityManager]
    Normally you let the JPA container manage all interaction with the datasource for your application. However, if you do require access to the datasource or connection in use by your JPA application, the following code should help you.
    The following line of code will get the current JTA or non-JTA datasource in use by an entityManager in a container managed JPA application using a JTA transaction-type.
    DataSource from a Container Managed EntityManager
    DataSource aDataSource = ((JNDIConnector)((DatabaseLogin)
    ((UnitOfWorkImpl)((JpaEntityManager)entityManager
    .getDelegate())
    .getActiveSession()
    .acquireUnitOfWork())
    .getProject()
    .getDatasourceLogin())
    .getConnector())
    .getDataSource();{noformat}
    Connection from an SE EntityManager
    The following code will return a null connection or cause a (non-narrow()) $Proxy ClassCastException if run on a container managed EntityManager, it is supplied for SE applications or one using the JavaSECMPInitializer or a RESOURCE_LOCAL transaction-type.
    Connection aConnection = ((UnitOfWorkImpl)((JpaEntityManager)entityManager)
    .getActiveSession()
    .acquireUnitOfWork())
    .getAccessor()
    .getConnection();
    thank you
    /michael [http://www.eclipselink.org|http://www.eclipselink.org/]
    Edited by: michael_obrien on Dec 21, 2008 2:16 PM

  • Database not getting connected from sql developer(Vendor code 20)

    Am getting the following error while connecting db from sql dev
    "network adapter could not establish connection vendor code 20"
    FYI - database is up and running fine in sqlplus, and am not able to find the service in lnsrctl. As am using OIM db as service name while its showing CLRExtProc.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Prod
    ction
    Start Date 21-NOV-2012 20:28:48
    Uptime 0 days 0 hr. 27 min. 32 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File d:\app\Karan\product\11.2.0\dbhome_1\network\admin\li
    tener.ora
    Listener Log File d:\app\karan\diag\tnslsnr\Karan-PC\listener\alert\log
    xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 3 handler(s) for this service...
    The command completed successfully
    Also contents of tnsnames.ora and listener.ora are shown below
    # listener.ora Network Configuration File: d:\app\Karan\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = d:\app\Karan\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:d:\app\Karan\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = d:\app\Karan
    ---------------------------------------------tnsnames.ora-----------------------------------------------------
    # tnsnames.ora Network Configuration File: d:\app\Karan\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    OIMDB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = OIMDB)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    FYI - yesterday all database was running fine. As I was trying to do some modifications in tnsnames.ora and listener.ora, I was unable to save them, as permission is denied.
    Kindly suggest.....
    Regards,
    KK

    stop everything OIM, Database and listener.
    now open your listener.ora and put below ( backup the original one somewhere)
    LISTENER=
    (DESCRIPTION=
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (ADDRESS=(PROTOCOL=ipc)(KEY=extproc))))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (GLOBAL_DBNAME=oimdb)
    (ORACLE_HOME=d:\app\Karan\product\11.2.0\dbhome_1)
    (SID_NAME=OIMDB)))
    LISTENER=
    (DESCRIPTION=
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (ADDRESS=(PROTOCOL=ipc)(KEY=extproc))))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (GLOBAL_DBNAME=oimdb)
    (ORACLE_HOME=d:\app\Karan\product\11.2.0\dbhome_1)
    (SID_NAME=oimdb))
    (SID_DESC=
    (SID_NAME=plsextproc)
    (ORACLE_HOME=d:\app\Karan\product\11.2.0\dbhome_1)
    (PROGRAM=extproc)))
    1.set ORACLE_SID at command prompt . like set ORACLE_SID=OIMDB
    2.start listener (lsnrctl start)
    3.start database.
    4. check this query ( select instance_name from v$instance;)
    5. check listener status( lsnrctl status)
    if still doesn't work try same step with the original listener.ora file

  • Dirty connections from pool? via ORA-03113

    hi,
    i've a fairly standard 3 tier setup with CMP beans and an Oracle server.
    Its WL6.1 SP4 talking to Oracle 9.0.1 using jdriver. As part of a
    failover test scenario I do the following;
    startup DB & weblogic
    run test to create some data via CMP - the test also uses some non bean
    code to do direct SQL based on a connection retrieved form the WL pool
    (new InitialContext, JNDI lookup etc)
    test passes and all is good
    shutdown and restart db leaving WL in place
    run the test again and code that only uses EJB and CMP sucessfully
    writes to the DB, but the app level SQL code that retrieves the
    connection form the pool manages to create a conn and a statement but
    the executeQuery throws the following;
    java.sql.SQLException: ORA-03113: end-of-file on communication channel
    at weblogic.db.oci.OciCursor.getCDAException(OciCursor.java:240)
    at weblogic.jdbc.oci.Statement.private_parse(Statement.java:826)
    at
    weblogic.jdbc.oci.Connection.prepareStatement(Connection.java:733)
    at
    weblogic.jdbc.pool.Connection.prepareStatement(Connection.java:305)
    at
    weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.java:135)
    at
    weblogic.jdbc.rmi.internal.ConnectionImpl_WLSkel.invoke(Unknown Source)
    at
    weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:306)
    at
    weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:275)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    I'm guessing that the socket in the pooled connection is bad due to the
    DB restart. The only reason I can see the EJB code working is if the CMP
    code traps the error and retries somehow. This feels really bad as that
    means the responsibility to manage the connections state is above the
    pool level rendering it useless to me.
    To recap I dont understand why the EJB/CMP code works and the raw SQL
    over a connection retrieved from the pool fails.
    Any help much appreicated.
    -s

    Manish Vazirani wrote:
    Joe,
    Thats what i have observed too. However, i had written a test standalone
    java client which created global DS & Conn objects in its
    init/constructor... and then in an infinite while loop, i was using a
    PreparedStatement to execute a "select * from dual" dummy query every 60
    seconds using the "cached" global connection object. In between i : a)
    Recycled/Bounced the DBMS and b) Invoked the weblogic.Admin CLI command
    to explicitly reset the conn pool. And this DID work ! even though the
    conn was held by app all along and NOT released back to the pool during the
    recycling. I had the test table, test on reserve, and prepared statement
    cache settings enabled on the pool. Does this mean that the PS cache was
    sorta .. fooling me and it wasnt a fresh DB lookup each time after we
    recycled ?I believe the refresh doesn't change the reserved-unreserved status of the
    pooled connections, but it should reset the statement cache of the connection.
    This is interesting. If the prepared statement you're using was not cached, it
    would have been closed, but I'm wondering if your long-running (holds
    connections across client-WLS calls) may cause a reference to a defunct
    statement to be retained...
    Joe
    >
    >
    thanks,
    manish
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Stephen Mc Namara wrote:
    hi,
    i've a fairly standard 3 tier setup with CMP beans and an Oracle server.
    Its WL6.1 SP4 talking to Oracle 9.0.1 using jdriver. As part of a
    failover test scenario I do the following;Hi. Is your pool set up to test connections at reserve time? Are theconnections/
    statements that failed held by the application during the cycling of theDBMS?
    The pool should replace bad connections and their cached preparedstatements
    when the connection is tested at reserve time, but the pool will neverintercede
    in the condition of a connection while it is in application hands.
    Joe
    startup DB & weblogic
    run test to create some data via CMP - the test also uses some non bean
    code to do direct SQL based on a connection retrieved form the WL pool
    (new InitialContext, JNDI lookup etc)
    test passes and all is good
    shutdown and restart db leaving WL in place
    run the test again and code that only uses EJB and CMP sucessfully
    writes to the DB, but the app level SQL code that retrieves the
    connection form the pool manages to create a conn and a statement but
    the executeQuery throws the following;
    java.sql.SQLException: ORA-03113: end-of-file on communication channel
    at
    weblogic.db.oci.OciCursor.getCDAException(OciCursor.java:240)
    atweblogic.jdbc.oci.Statement.private_parse(Statement.java:826)
    at
    weblogic.jdbc.oci.Connection.prepareStatement(Connection.java:733)
    at
    weblogic.jdbc.pool.Connection.prepareStatement(Connection.java:305)
    at
    weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.ja
    va:135)
    at
    weblogic.jdbc.rmi.internal.ConnectionImpl_WLSkel.invoke(Unknown Source)
    at
    weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:306)
    at
    weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:275)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:2
    2)
    atweblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    I'm guessing that the socket in the pooled connection is bad due to the
    DB restart. The only reason I can see the EJB code working is if the CMP
    code traps the error and retries somehow. This feels really bad as that
    means the responsibility to manage the connections state is above the
    pool level rendering it useless to me.
    To recap I dont understand why the EJB/CMP code works and the raw SQL
    over a connection retrieved from the pool fails.
    Any help much appreicated.
    -s

  • How to get Connection from Internet

    I have Internet Connection having
    Localhost I.P Address : 127.0.0.1
    Network I.P Address : 192.168.0.26
    Proxy I.P Address:      193.251.135.124
    Real I.P : 203.135.59.209
    I have TCP client server Sources, when I listen the port on my PC at 1000, I can send the request from client version if I use Server I.P as
    Localhost
    Lan Ip 192.168.0.26
    But if i send it on Proxy or Real I.p , server hosted on same machine cannot recive,
    Then How a Client Connect to My PC, without Any Server...
    Any Idea????????

    Currently, the Airport Express (not the Airport Express Extreme router) is acting as a base station via Ethernet to a cable modem.
    I guess that it would be correct to assume that your new Mac can connect wirelessly to the AirPort Express base station, and access the Internet that way.
    I am not sure if my 41/2 year old HP(Hewlect Packard) PC - (with AMD Athlon 64 3400 processor) which I am unable to get internet connection now is Wi-Fi capable.
    You said "Prior to using the new Airport Express,I was using the Linksys wireless G router and have a wireless adapter sitting on top of my PC.". The wireless adapter would be Wi-Fi certified (they normally are). Is it a USB adapter? Please post back with the exact model.
    Question: do I still need to use the adapter or not? Or the new Airport Express is enough to send internet signal to the PC?
    A Wi-Fi adapter would act as a wireless network card for a PC, and should communicate wirelessly with an AirPort Express base station without a problem (providing that the chosen security/encryption is supported on both sides). Since the wireless adapter apparently was OK (with the Linksys router), you should be able to continue using it. Any other (built-in) wireless capability ought to be externally visible at the PC as a PCI card with an antenna.
    Does the (Windows?) PC operating system detect any wireless networks? Is your AirPort Express on this list (even if you cannot connect or access the Internet)?
    Jan

  • How can I get connection from iMac to TV wirelessly ?

    How can I view photos from my Mac hard drive or from an external hard drive on my TV screen? My Sonia Bravia TV is in another room and has a Wireless LAN adaptor which detects my Router and connects, and also detects an external hard drive connected to the Router via Ethernet. But it does not detect my iMac (can be connected to my router via ethernet or wifi- makes no difference), nor can it connect to the external hard drive. I don't care which source I send the photos from, but at least one would be good! The Router is a Netgear DG834GT.

    You can use an Apple TV.
    Otherwise, you cannot do what you are attempting.  Your television cannot access the devices and files on your Mac. 

  • Cannot get connection from Iphone 5 to my desktop via bluetoot. They seem to see eachother just fine and I am getting the code on my computer and the phone but when I hit the pair button  the connection cannot be made

    Trying to connect my iphone 5 with my desktop MAC via bluetooth. Everything seems to be working fine when pairing them up. I get the code on both the computer and the phone but when I hit the final pairing button i get an unsuccessful pairing issue. Any ideas

    Catch 22
    I need Safari to get to that first page so I can do that!
    I am already logged on via the laptop, and can add the iPhone if Safari could only get to the first page!!
    The lobby wifi is open, and doesn't need the sign in page, but I can't get to the Internet even though it seems to have connected to the hotel's wifi.

  • ResourceException: Access not allowed (when trying to grab a connection from weblogic pool)

    I am using WLS7 with SP1.
    I just recently migrated from WLS6.0. When my code tries to grab a
    connection from the pool, it throws an exception
    java.sql.SQLException: Pool connect failed:
    weblogic.common.ResourceException: Access not allowed
    at weblogic.jdbc.pool.Driver.connect(Driver.java:202)
    Does anyone know if anything changed from 6.0 to 7?
    Here is a piece of the code that throws exception.
    Driver driver =
    (Driver)Class.forName("weblogic.jdbc.pool.Driver")
    .newInstance();
    conn = driver.connect("jdbc:weblogic:pool:" +
    dbName, null);
    Thanks in advance.

    Hi Jung,
    "Jung Yang" <[email protected]> wrote in message
    news:[email protected]...
    Do you know how to change security setting on the connection pool?
    Thanks.WebConsole:
    1.Compatibility Security => ACLs
    Create a new ACL,
    name : weblogic.jdbc.connectionPool.yourPoolname
    permission : reserve, reset
    group : everynone
    2.Services => JDBC => Connection Pool
    Create a new Connection Pool
    ACL Name : weblogic.jdbc.connectionPool.yourPoolname
    In 'Target' tab, choose server and click the Apply button
    Slava
    >
    "Slava Imeshev" <[email protected]> wrote in message
    news:[email protected]...
    Hi Jung,
    Could you try providing weblogic user name and password
    in the properties?
    Could you also check security setting of the connection pool?
    Regards,
    Slava Imeshev
    "Jung Yang" <[email protected]> wrote in message
    news:[email protected]...
    Well that is exactly what I am doing. The variable dbName is database
    connection pool name that I created in weblogic console. Again, it
    worked
    in WLS6 but after migration, it stopped working.
    Thanks.
    "Mitesh Patel" <[email protected]> wrote in message
    news:[email protected]...
    In my code I am supplying name of the connection pool already
    created
    in
    weblogic server. I am asking you to get connection from the pool
    using
    pool
    driver.
    In your case you are trying to create connection straight to
    database
    using pool
    driver.
    What I am asking is pass name of the connection pool instead of
    database
    name.
    Thanks,
    Mitesh
    Jung Yang wrote:
    What would be the difference between your code and mine? Mine
    simple
    appends dbName string value for connection pool name at the end of
    "jdbc:weblogic:pool:"? And why same exact code would work in WLS6and
    not
    work in WLS7?
    Thanks.
    "Mitesh Patel" <[email protected]> wrote in message
    news:[email protected]...
    conn = driver.connect("jdbc:weblogic:pool:" +
    dbName, null);Instead of doing this what if you use
    Connection conn =
    myDriver.connect("jdbc:weblogic:pool:myConnectionPool", null);
    Will you please try this and see if that helps?
    Mitesh
    Jung Yang wrote:
    Isn't that exactly what I posted for my code piece?
    Thanks.
    "Mitesh Patel" <[email protected]> wrote in message
    news:[email protected]...
    Try As described below:
    The following example demonstrates how to use a database
    connection
    pool
    from a servlet.
    Load the pool driver and cast it to java.sql.Driver. The
    full
    pathname
    of
    the driver is weblogic.jdbc.pool.Driver. For example:
    Driver myDriver = (Driver)
    Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    Create a connection using the URL for the driver, plus
    (optionally)
    the
    name of the registered connection pool. The URL of the pool
    driver
    is
    jdbc:weblogic:pool.
    You can identify the pool in either of two ways:
    Specify the name of the connection pool in a
    java.util.Properties
    object
    using the key connectionPoolID. For example:
    Properties props = new
    Properties();props.put("connectionPoolID",
    "myConnectionPool");Connection conn =
    myDriver.connect("jdbc:weblogic:pool", props);
    Add the name of the pool to the end of the URL. In this case
    you
    do
    not
    need a Properties object unless you are setting a username
    and
    password
    for using a connection from the pool. For example:
    Connection conn =
    myDriver.connect("jdbc:weblogic:pool:myConnectionPool",
    null);
    Note that the Driver.connect() method is used in theseexamples
    instead of
    the DriverManger.getConnection() method. Although you may
    use
    DriverManger.getConnection() to obtain a databaseconnection,
    we
    recommend
    that you use Driver.connect() because this method is not
    synchronized
    and
    provides better performance.
    Note that the Connection returned by connect() is an
    instance
    of
    weblogic.jdbc.pool.Connection.
    Call the close() method on the Connection object when youfinish
    with
    your
    JDBC calls, so that the connection is properly returned to
    the
    pool. A
    good coding practice is to create the connection in a try
    block
    and
    then
    close the connection in a finally block, to make sure the
    connection
    is
    closed in all cases.
    conn.close();
    Mitesh
    Jung Yang wrote:
    I am using WLS7 with SP1.
    I just recently migrated from WLS6.0. When my code tries
    to
    grab a
    connection from the pool, it throws an exception
    java.sql.SQLException: Pool connect failed:
    weblogic.common.ResourceException: Access not allowed
    at
    weblogic.jdbc.pool.Driver.connect(Driver.java:202)
    Does anyone know if anything changed from 6.0 to 7?
    Here is a piece of the code that throws exception.
    Driver driver =
    (Driver)Class.forName("weblogic.jdbc.pool.Driver")
    .newInstance();
    conn =
    driver.connect("jdbc:weblogic:pool:"
    +
    dbName,
    null);
    >>>>>>>>>
    Thanks in advance.

  • How to get and use connection from Web AS 7.0 pool?

    Hello!
    I've set up a datasource and connection pool in my Web AS according http://help.sap.com/saphelp_nw70/helpdata/en/c0/3ad4d5cdc66447a188b582aad537d3/frameset.htm
    And I have some questions about using connection pool:
    1) here is my code which get connection form pool:
    InitialContext ctx = new InitialContext();
    DataSource datasource = (DataSource) ctx.lookup("jdbc/IndexesDataSource");
    Connection con = datasource.getConnection();
    return con;
    Does it properly?
    2) Which method I should call when I need to pass connection back to the pool? Will it be enough to call con.close()?
    regards, Lev

    Hi Lev,
    Write code like this
    try{
    InitialContext ctx=new InitialContext();
    DataSource ds=(DataSource)ctx.lookup("jdbc/indexsDataSource");
    Connection con=ds.getConnection();
    Statement stmt=con.createStatement();
    con.close();
    catch(Exception e)
    wdComponentAPI.getMessageManager().reportException("Exception "+e,true);
    also have a look at below links[Link|http://help.sap.com/saphelp_nw04/helpdata/en/61/fdbc3d16f39e33e10000000a11405a/frameset.htm][Link1|http://help.sap.com/saphelp_nw04/helpdata/en/46/ddc4705e911f43a611840d8decb5f6/frameset.htm][Tutorial|http://help.sap.com/saphelp_nw04/helpdata/en/91/9c2226df76f64fa7783dcaa4534395/frameset.htm]
    Regards,
    Krishna kattu

  • How to get connected to OIPM from Oracle WebCenter Document Capture

    Hi,
    How we get connected from Oracle WebCenter Document Capture(ODC) to Oracle WebCenter Cintent:Imaging (OIPM). OIPM is 11g and ODC is 10g. Pls suggest any doc or link.
    Thanks and Warm Regards,
    RR.

    Reading your previous question once again, now I think you have actually asked a simpler question than I answered to. Is it that you just need to anyhow send data from ODC to IPM?
    If so, it is a standard functionality of ODC, called Commit Profile. I have never worked with IPM, but there is one to UCM and it works the way that you use administrator's login (such as sysadmin in 10g or weblogic in 11g) for authentication and then you map ODC user to a metadata field (in UCM there is a mandatory field called dDocAuthor and there should be value of an existing user; but you can you the administrator here as well, if ODC user info is not important for you). I believe IPM will behave similar.
    What you have to check, whether commit profiles are available for IPM 11g, but I believe they are.
    As for the documentation, the link I mentioned before contains both installation and configuration manual, so you should find all the info there.

Maybe you are looking for