Error connecting to planning database:Unsuccessful logon. Check log for det

Hello,
I am getting the following error which I am trying to connect to planning app data source for reports from workspace.
planning version is 9.3.1
can anyone suggest resolution for this?
Thanks
Hemanth
03-14 13:40:41 ERROR HrDsManagerBean     com.hyperion.reporting.util.HyperionReportException: Error connecting to database connection PLN: Unsuccessful logon. Check log for details.com.hyperion.planning.HspException
     at com.hyperion.reporting.connection.UserConnection.openConnection(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)Lcom.hyperion.ap.IAPDomain;(Unknown Source)
     at com.hyperion.reporting.connection.UserConnection.openConnection()Lcom.hyperion.ap.IAPDomain;(Unknown Source)
     at com.hyperion.reporting.connection.UserConnection.<init>(Ljava.lang.String;Lcom.hyperion.reporting.security.IHsSession;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;ILjava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Z)V(Unknown Source)
     at com.hyperion.reporting.connection.ConnectionManager.getConnection(Lcom.hyperion.reporting.security.IHsSession;Lcom.hyperion.reporting.datasource.IHrDatasource;)Lcom.hyperion.reporting.connection.UserConnection;(Unknown Source)
     at com.hyperion.reporting.connection.ConnectionManager.getCube(Lcom.hyperion.reporting.security.IHsSession;Lcom.hyperion.reporting.datasource.IHrDatasource;Ljava.lang.String;)Lcom.hyperion.ap.IAPMdCube;(Unknown Source)
     at com.hyperion.reporting.connection.ConnectionManager.getCube(Lcom.hyperion.reporting.security.IHsSession;Ljava.lang.String;)Lcom.hyperion.ap.IAPMdCube;(Unknown Source)
     at com.hyperion.reporting.datasource.HrDsManagerBean.validateDatasource(Lcom.hyperion.reporting.datasource.IHrDatasource;)V(Unknown Source)
     at com.hyperion.reporting.datasource.HrDsManagerBean.doAddNew()Ljava.lang.String;(Unknown Source)
     at com.hyperion.reporting.datasource.HrDsManagerBean.process()Ljava.lang.String;(Unknown Source)
     at jsp_servlet._modules._com._hyperion._reporting._web._common.__hrdslogonfns._jspService(__hrdslogonfns.java:1470)
     at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
     at com.hyperion.reporting.webviewer.HRSecurePagesFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(Unknown Source)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
     at com.hyperion.reporting.webviewer.HRLocaleFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(Unknown Source)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3151)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)

Database is up. All the services are running fine.
There are not changes in Servernames.
This error is occuring in all the environments. Dev, QA and Prod.

Similar Messages

  • Error starting the Planning application, review the event log for details

    We are using the Hyperion Demo and there was a problem suddenly cropped up.
    While rebooting the system error is displayed saying - Atleast one of the driver is not installed.
    VMware is used to access the Hyperion Demo and when Planning application is started it gives the following error:
    Error starting the Planning application, review the event log for details
    We were using this Demo from some weeks and was able to access the workspace and others but from few days this issue is faced.
    Immediate response is highly appreciated as we are planning for a user demo in the weekend.
    Thanks,
    Ravi Kanth

    Hi Nofog / Goodwin,
    OLDAP is not running.
    Following errors are displayed:
    When VMWare is restarted: At least one service or driver failed during system startup. Use Event viewer to examine the Event log for details.
    OpenLDAP: Windows could not start the hyperion S9 OpenLDAP on Local Computer. For more information review the system even log. If this is not the microsoft service contact the service vendor, and refer to service specific code 21.
    Event log: The Hyperion S9 OpenLDAP service terminated with service - specific - erro 21 (0x15).
    Please let me know your email ids so that to send the screen shots.
    Thanks,
    Ravi

  • Recieving Error connecting to Planning server when validating BusinessRule.

    Hi,
    I am recieving an error when validating business rules.
    Internal error connecting with given connection information. Get details for more information.
    When I click on Get Detail I see the below information.
    Details:Error connecting to Planning server xxxxxx.
    Details:Exception occurred. Please check your log file for details.
    I do have one more issue I cannot access Applications through Web. Recieving the following error Unsuccessful Logon Check Log for details.
    Hyperion Planning Version is 9.2.
    Please help.
    Thanks.
    Edited by: user8887080 on Aug 18, 2010 1:39 PM

    I recommend logging into My Oracle Support and having a read of doc id - 763345.1
    It goes through different options for resolving business rules issues.
    Though you will need to be able to log into your planning applications first, make sure all your connection information is correc e.g. the connection details to the relational databases.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Error connecting to planning server from EAS

    We implemented Hyperion Planning about 1 month ago. We are having this intermittent issue with connecting to Planning servers. When the users attempt to add a Business Rule, they select an outline, and browse to the planning servers. When they click one of the two servers they get the message "Error connecting to Planning server <<Server A>>". The message only happens on Server A.
    I check the planning service, it is running. I login directly to the planning application (http://<<Server A>>:8300/HyperionPlanning/) , it works fine. However I still get the error. The problem comes and goes, but once is happens the only solution seems to be restart all of the services on the Planning server.
    Is anyone experiencing this issue?
    If so is there a resolution? Is this a common thing with Hyperion Planning?
    I opened a TAR, but because the issue is only happening occasionally (1 day in 5) I thought I would try the forums. Any help or suggestions would be appreciated.

    Hi,
    What version of planning are you running, there was patch 9.3.1.1.1 that addressed
    6636367 (8-665086601) When the Business Rules connection to the relational database is lost, Business Rules does not reconnect to it. To solve this problem, an optional property, HBR_CONNECTION_VALIDATE_TIME, was added to HBRServer.properties. This property specifies a time interval for checking the connection between Business Rules and the relational database. If the connection is not valid, a new connection is established. The time interval is specified in milliseconds and defaults to 300,000 (five minutes).
    This maybe the same sort of issue you are experiencing.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • The data form form name is invalid. Check log for details

    Hi all,
    i have just built a planning application from scratch and created my first form.
    i have encountered the error "The data form <form name> is invalid. Check log for details "
    and i have checked the log file.
    It reads as follows
    Unknown calculation type [0] during the dynamic calculation. Only default agg/formula/time balance operations are handled.
    An error [1012703] occurred in Spreadsheet Extractor.
    Spreadsheet Extractor Elapsed Time : [0] seconds
    Spreadsheet Extractor Big Block Allocs -- Dyn.Calc.Cache : [0] non-Dyn.Calc.Cache : [0]
    Transaction [ 0x60001( 0x4d8030e5.0xa0280 ) ] aborted due to status [1012703].
    User [admin] set active on database [Plan1]
    Can any one suggest me how to handle this.
    Thanks in advance

    user9192499 wrote:
    Hi all,
    i have just built a planning application from scratch and created my first form.
    i have encountered the error "The data form <form name> is invalid. Check log for details "
    and i have checked the log file.
    It reads as follows
    Unknown calculation type [0] during the dynamic calculation. Only default agg/formula/time balance operations are handled.
    An error [1012703] occurred in Spreadsheet Extractor.
    Spreadsheet Extractor Elapsed Time : [0] seconds
    Spreadsheet Extractor Big Block Allocs -- Dyn.Calc.Cache : [0] non-Dyn.Calc.Cache : [0]
    Transaction [ 0x60001( 0x4d8030e5.0xa0280 ) ] aborted due to status [1012703].
    User [admin] set active on database [Plan1]
    Can any one suggest me how to handle this.
    Thanks in advance
    ERROR 1012703
    *"Unknown calculation type [0] during the dynamic calculation. Only default agg/formula/time balance operations are handled."*
    There is an error in a formula(s), therefore, no calculations will work. The problem is that when you have the outline open in Edit mode and you try to 'Validate', it does not identify any of these errors, nor does it write it to a log. However, you can go one by one and validate each formula. So any time you delete a member or modify a member name, be sure that this member is not included in any formula.
    Regards,
    Prabhas

  • The data Form is invalid. Check log for details.

    Hi All,
    I am getting the following error, when I try to open a form.
    The data form 1. Current Year Forecast Input Form is invalid. Check log for details.
    Could you please let us know the path of the log file.
    Thanks & Regards,
    Sravan Kumar.

    Hi,
    If you want to know what patch release you are you, then log into planning directly and click help > about
    The latest patch is :- 7229787 — You cannot open a Planning data form in Smart View, if in Planning preferences, the property for Indentation of Members on Page Display is set to Indent based on hierarchy.
    I believe John was referring to this bug which was resolved in patch 9.3.1.1.6 :-
    7229787 — You cannot open a Planning data form in Smart View, if in Planning preferences, the property for Indentation of Members on Page Display is set to Indent based on hierarchy.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Serial records:Lot/Serial validation failed.  Please check log for details

    Hi,
    Received error while performing Quantity On Hand Conversion at MTL_TRANSACTIONS_INTERFACE table,
    "Serial records:Lot/Serial validation failed. Please check log for details."
    Perfomred following steps,
    1) Inserted data at MTL_TRANSACTIONS_INETRFACE table
    2) Executed "INV_TXN_MANAGER_PUB.process_Transactions"
    Working on Oracle EBS R12..
    Inventory Items having above mentioned error are not Lot Controlled and Serial Number generation is set to "At Receipt" . Can anyone tell, what is the cause of the error and where log file is created ?

    Hi;
    What is EBS version? Please see:
    ROI Fails with WMSINB-23840:Lot/Serial Validation Failed. Please Check Log for Details [ID 352570.1]
    Regard
    Helios

  • The data form is invalid. Please Check log for details.

    Hi.
    Recently i have migrated an application from scratch onto same datasource where application earlier was hosting on. i have deleted the application and making use of same datasource i have created the application again and migrated the artefacts and imported,refreshed and loaded the data into essbase db, once after the migration am not able to open some data forms and after the essbase restart i am able to some and others are still giving the same error message as earlier "The data form is invalid Please check log for details.".
    Could anyone help on this. have gone through different otn answers but unable to reach at point.
    Thanks
    Amith

    Try Oracle Support:
    Error "1012703 Unknown calculation type [0] during the dynamic calculation. Only default agg/formula/time balance operations are handled" During Calculation (Doc ID 744529.1)
    or
    Error: "Unknown calculation type [0] during the dynamic calculation. Only default agg/formula/time balance operations are handled." (Doc ID 593227.1)
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • SmartView 11.1.2.1 Operation Failed.  Check Log for Details

    Hello,
    We recently upgraded to 11.1.2.1 and are having several users getting an error message when submitting data to HFM via Smartview. The error says _"Operation failed. Check log for details"_. The odd part is that they said the data is still uploading to the DB correctly. I have two quick questions:
    1) Where can I go to check the logs for details?
    2) Outside of seeing the error log does anyone know what causes this?
    Thank you in advance,
    Jason

    Which version of SV, excel, IE you are on?
    HTH-
    Jasmine.

  • Error connection with a database in remote node

    When I try to start a dialog instance does not detect that the database is in a remote server is booted:
    "Checking SAP R/3 PAP Database
    Database is not available via /usr/sap/PAP/SYS/exe/run/R3trans -d -w
    Database PAP must be started on remote server"
    The output of R3trans -x is:
    "This is ./R3trans version 6.05 (release 46D - 28.03.01 - 11:30:00).
    2EETW169 no connect possible: "DBMS = ORACLE      --- dbs_ora_tnsname = 'PAP'"
    ./R3trans finished (0012)."
    The output of trans.log is:
    "4 ETW000  [developertrace,0] -->oci_logon(con_hdl=0, user='', dbname='PAP')
    4 ETW000                                                         88  0.035395
    4 ETW000  [dboci.c ,0] *** ERROR => OCI-call 'olog' failed: rc = 12705
    4 ETW000                                                      75859  0.111254
    4 ETW000  [dbsloci.,0] *** ERROR => CONNECT failed with sql error '12705'"
    Can anybody help me to solve this problem?

    Thank you for your help, RK.
    The problem was that sidadm was not the owner of ORA_NLS.
    Now I have another problem: when running startsap not boot disp + work.

  • Urgent: Unsuccessful logon. Check log for details

    Hi,
    I am not able to login into the Planning System due to this reason. We recently migrated the Oracle database from one server to new db server and accordingly we updated the HspJSHome.properties file.
    Can you please look into the below log file and let me know if anything wrong in the Configuration or database migration.
    Note: We installed the Oracle in New Server and migrated all the tables and information into the New server from old server.
    01/05 02:03:29 user HspLogOn: destroy
    01/05 02:03:29 user FileServlet: destroy
    01/05 02:03:29 user HspStartApplication: destroy
    01/05 02:03:29 error Session data is not serializable (ID=66301871131262673886692) - session is lost
    01/05 02:03:38 info No JDBC data sources have been configured for this server (see jrun-resources.xml)
    01/05 02:03:38 info JRun Web Server listening on *:8300
    01/05 02:03:38 info Deploying enterprise application "JRun 4.0 Internal J2EE Components" from: file:/E:/JRun4/lib/jrun-comp.ear
    01/05 02:03:38 info Deploying EJB "JRunSQLInvoker" from: file:/E:/JRun4/lib/jrun-comp.ear
    01/05 02:03:39 info Deploying enterprise application "default-ear" from: file:/E:/JRun4/servers/HyperionPlanning/default-ear/
    01/05 02:03:39 info Deploying web application "JRun Default Web Application" from: file:/E:/JRun4/servers/HyperionPlanning/default-ear/
    01/05 02:03:39 info Web Services in default-ear#default-war:
    01/05 02:03:39 info AdminService
    01/05 02:03:39 user JSPServlet: init
    01/05 02:03:39 info Deploying enterprise application "HyperionPlanning" from: file:/E:/JRun4/servers/HyperionPlanning/HyperionPlanning.ear
    01/05 02:03:39 info Deploying web application "HyperionPlanning" from: file:/E:/JRun4/servers/HyperionPlanning/HyperionPlanning.ear
    01/05 02:03:39 user JSPServlet: init
    01/05 02:03:39 user HspStartApplication: init
    01/05 02:03:39 user Starting Hyperion Planning...
    01/05 02:03:39 user Hyperion Planning started in 0 seconds.
    01/05 02:03:39 info Deploying enterprise application "Macromedia Flash Remoting MX EAR" from: file:/E:/JRun4/lib/flashgateway.ear
    01/05 02:03:40 info Deploying web application "Macromedia Flash Remoting MX" from: file:/E:/JRun4/lib/flashgateway.ear
    01/05 02:03:40 user JSPServlet: init
    01/05 02:03:40 user FlashGatewayServlet: init
    01/05 02:04:06 user HspLogOn: init
    01/05 02:06:35 user HspLogOn: destroy
    01/05 02:06:35 user HspStartApplication: destroy
    01/05 02:06:35 error Session data is not serializable (ID=66301871131262673886692) - session is lost
    01/05 02:06:44 info No JDBC data sources have been configured for this server (see jrun-resources.xml)
    01/05 02:06:44 info JRun Web Server listening on *:8300
    01/05 02:06:44 info Deploying enterprise application "JRun 4.0 Internal J2EE Components" from: file:/E:/JRun4/lib/jrun-comp.ear
    01/05 02:06:44 info Deploying EJB "JRunSQLInvoker" from: file:/E:/JRun4/lib/jrun-comp.ear
    01/05 02:06:44 info Deploying enterprise application "default-ear" from: file:/E:/JRun4/servers/HyperionPlanning/default-ear/
    01/05 02:06:44 info Deploying web application "JRun Default Web Application" from: file:/E:/JRun4/servers/HyperionPlanning/default-ear/
    01/05 02:06:45 info Web Services in default-ear#default-war:
    01/05 02:06:45 info AdminService
    01/05 02:06:45 user JSPServlet: init
    01/05 02:06:45 info Deploying enterprise application "HyperionPlanning" from: file:/E:/JRun4/servers/HyperionPlanning/HyperionPlanning.ear
    01/05 02:06:45 info Deploying web application "HyperionPlanning" from: file:/E:/JRun4/servers/HyperionPlanning/HyperionPlanning.ear
    01/05 02:06:45 user JSPServlet: init
    01/05 02:06:45 user HspStartApplication: init
    01/05 02:06:45 user Starting Hyperion Planning...
    01/05 02:06:45 user Hyperion Planning started in 0 seconds.
    01/05 02:06:45 info Deploying enterprise application "Macromedia Flash Remoting MX EAR" from: file:/E:/JRun4/lib/flashgateway.ear
    01/05 02:06:45 info Deploying web application "Macromedia Flash Remoting MX" from: file:/E:/JRun4/lib/flashgateway.ear
    01/05 02:06:45 user JSPServlet: init
    01/05 02:06:45 user FlashGatewayServlet: init
    01/05 02:06:56 user HspLogOn: init
    01/05 02:09:28 user FileServlet: init
    01/05 02:09:28 user FileServlet: init

    Hi,
    If it is 9.3.1 then it does not use HspJSHome.properties
    What you should do is run the config utility again and update the planning database connection to point to your new oracle instance, redeploy the web application, then update all your datasources through the config utility.
    If you don't want to redeploy the web app you can update the file PlanningSystemDB.properties within the planning web app to point to your new oracle instance.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Error connecting to Sybase database through WSAD

    In my jsp page I am trying to connect to Sybase database within WSAD.
    Here is my code:
    InitialContext ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/AimDB");
    Connection con = ds.getConnection();
    It is giving an error message:
    Error 500: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object.
    On console below error message is coming:
    E SRVE0026E: [Servlet Error]-[Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object.]: com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is java.lang.Exception: Failed security check. Client is not permitted to create connection factory jdbc/AimDB
         at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.createMCFandPM(ConnectionFactoryBuilderImpl.java:1566)
         at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getObjectInstance(ConnectionFactoryBuilderImpl.java:1188)
         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
         at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:884)
         at com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:1762)
         at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1615)
         at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1525)
         at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1225)
         at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
         at javax.naming.InitialContext.lookup(InitialContext.java:359)
         at org.apache.jsp._Test1._jspService(_Test1.java:89)
    Thanks,
    Vineet

    Hi ,
    Any body have this solution ??? I am using wsad -5.1.2 .When I try to access datasource from test server I got this same problems....
    I tried whatever instructs in above link.But after that I got same problem ....
    Sorry,for bad english
    advance thanks

  • Error connecting to MySQL database

    Well I am a beginner trying to get the basics of JDBC. I am following a simple connection tutorial and I cannot even make this work. I receive an error when I run the program. It is a nested error that begins with "java.io.EOFException". I'm thinking it has something to do with the URL I am using to connect to the database. Any ideas?
    Here is the code I am using if that helps at all.
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class jdbctry {
      public static void main(String args[]) {
        Connection con = null;
        try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://url:port/database",
          if(!con.isClosed())
            System.out.println("Successfully connected to " +
              "MySQL server using TCP/IP...");
        } catch(Exception e) {
          System.err.println("Exception: " + e.getMessage());
        } finally {
          try {
            if(con != null)
              con.close();
          } catch(SQLException e) {}
    } edit- I think the problem was I had a bad port number assigned to the URL. This time I got a "java.net.SocketException" error. It says my connection timed out.
    Message was edited by:
    lw22

    I'll assume that you've substituted appropriate values into that connection URL, right?
    It s
    // host = IP address or name of machine where MySQL is listening
    // port = 3306 (default)
    // database = instance you wish to connect to
    // username, password have to be GRANTed access rights.
    String url = "jdbc:mysql://host:port/database";Can you connect using the MySQL client and see the database you want in Java? If the client can't connect, neither can JDBC.
    %

  • Error, connecting to the database!

    Hello!
    I have a problem connecting to the Oracle database.
    first it shows ORA-12705: Cannot access NLS data files or invalid environment specified
    but in the error log:
    oracle.dbtools.raptor.utils.TNSHelper
    Error:The system cannot find the file specified.
    What can it be?
    I had no problems with connecting to other databases, but with that one I have real problems.

    I have the same errors on SQL Developer 1.5.5:
    oracle.dbtools.raptor.utils.DBObject
    Could not read node:null
    However, the errors were fixed when I do the followings:
    In "Properties" of the connection, select the options:
    - Connection Type: TNS
    - Connection Identifier (instead of Network Alias)
    Hope that helps.
    Datma

  • Error connecting to portal database using alias

    i am using Connector framework api to connect to portal database.
    in <b>visual administrator -> JDBC connector</b>. I click on <b>runtime</b> tab
    Under <b>Resources</b> i find <b>Data Sources</b> and <b>Drivers</b>.
    Under Data sources I see SAPSR3DB. In Main tab on right hand pane I find many other aliases called SAP/BC_UME and SAP/BC_WDDR etc. Which one do I use in creating a connection.
    IConnectorGatewayService cgService = (IConnectorGatewayService) PortalRuntime.getRuntimeResources().getService("com.sap.portal.ivs.connectorservice.connector");
    ConnectionProperties cp = new ConnectionProperties(request.getLocale(),request.getUser());
    IConnection connection = cgService.getConnection("SAPSR3DB",cp);
    No system found for alias SAPSR3DB.

    Hi,
    If you want to use the PortalService IConnectorGatewayService you will have to create a JDBC System in the System Landscape of the Portal and create a System Alias with usermapping.
    You can then create a c connection to this JDBC System with the IConnectorGatewayServcie using the specified System alias.
    But if you want to directly connect to the System Database you can also use OpenSQL in your Portalapplication and lookup the Connection using JNDI:
          InitialContext ctx= new InitialContext();
          ds= (DataSource) ctx.lookup("jdbc/SAPSR3DB");
          java.sql.Connection conn= ds.getConnection();
    // user your connection here and close all jdbc objects finally!
    Best regards,
    Stefan Brauneis

Maybe you are looking for