ADMN-300075 - No datasource found at...

Hi,
I'm attempting to deploy an EAR file on a Linux platform, and the deployment fails with the error ADMN-300075 - No datasource found at jdbc/PCSIFSDS. My data-sources.xml file is correct in the EAR. Any pointers to what else may be wrong. The EAR was build on a Windows platform with JDeveloper v9.0.4.0.0.

Hi Michael --
Does your EAR file contain a META-INF/orion-application.xml which contains a reference to the embedded data-source.xml file
<orion-application ...>
<data-sources path="./data-sources.xml" />
</orion-application>
Without that, OC4J won't know to use your embedded datasource and will look to the datasources defined for the parent application, which as Stefan pointed out, is contained in the j2ee/home/config/data-sources.xml file.
cheers
-steve-

Similar Messages

  • No active writeable datasource found for user creation, check your Persiste

    HI SAP Guru's
    Suddenly when I am login in Portal with J2EE_ADMIN or any user , I am getting error
    You are not authorized to access this application; contact your system administrator
    and when I am going to create user in identity management I am getting below error
    Current user has user creation permissions in the UME, but cannot create users in the back-end system (data source). The original and possibly untranslated message was: "No active writeable datasource found for user creation, check your Persistence Configuration.".
    I have searched all related treads in SDN but no success
    Please help.
    Thanks & Regards
    Vinay Patel

    Dear all,
    I was searching the community because I had this same error and there was no answer of how it was fixed. So I'm sending how I fixed today in a customer environment.
    1. Go to portal  http://<portal>/webdynpro/dispatcher/sap.com/tcsecumewdumeadmin/UmeAdminApp
    - select configuration
    - folder "sap system based in abap"
    - do the conection test
    If the test fails, log on in client 001 and change user SAPJSF:
    - assign role SAP_BC_JSF_COMMUNICATION (only this one) and one profile that has permission to RFC logon
    - you can change the password too
    STOP/START ABAP+JAVA
    Go again to the portal above and test connection again. The tests should now be OK.
    2. Go to portal  http://<portal>/irj
    - Log on with administrator user
    Now you should be able to create an user.

  • "No DataSource found at jdbc/hrDS

    I found this problem on AS 9.03 when I tried tutorial from "Oracle by Example Series: Oracle9iAS > Deploy J2EE Applications and Web Services". Also I did see several posts on this subject but seems that they are rather useless for beginers like me. So, I would appreciate if someone can explain how do debug this.
    Steps I did"
    - installed Oracle AS 9.03 only J2EE component
    - Run Enterprise Manager and created the data source EXACTLY according to the tutorial. Then I tried to deploy provided application. The error occured.
    Once again I would REALLY appreciate any help here...
    Rade

    i get the following error when i try to deploy the
    sample HR J2EE app provided by Oracle.
    Deployment failed: Nested exception
    Resolution:
    Base Exception:
    java.rmi.RemoteException
    deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Error
    initializing ejb-module; Exception No DataSource
    found at jdbc/hrDS. deploy failed!: ; nested
    exception is:
    oracle.oc4j.admin.internal.DeployerException: Error
    initializing ejb-module; Exception No DataSource
    found at jdbc/hrDS
    any kind of suggestion or help is apprceiated.
    I've Oracle InfraStructure and App Server installed.
    I also have J2SE 1.4.2 installed.Hi Vithal -- this error message indicates that the application requires the use of a DataSource, with the name of jdbc/hrDS -- and it can't find it.
    So as a first call of action, you should create a datasource for the application to use. A datasource basically defines a connection to a database that an application can use. A datasource has a name by which it is identified, and also other values that define which database to connect to, what username to use, etc.
    So use the Enterprise Manager console on your application server instance and create a datasource called jdbc/hrDS.
    I can't remember the details of the app you are using, but perhaps have a re-read of the install/use instructions. Chances are that the database schema to which you point the jdbc/hrDS datasource at may require the pre-creation of some tables and population of them with data which the HRApp then uses.
    cheers
    -steve-

  • No Data Source found error while deploying J2EE application

    hi
    i am new to Oracle9ias. I was going through the Oracle by Example tutorial available on the site. There i followed the steps to deploy a sample J2EE application. Acc to it i first created the datasource and then tried to deploy the application. But i am getting "datasource not found" error. I am totally unaware of the possible cause of this. The error in specific is as follows
    Deployment failed: Nested exception Root Cause: No DataSource found at jdbc/hrDS. No DataSource found at jdbc/hrDS
    Please help
    thanks
    nitin

    Document is outdated & for now could you please follow http://dev.day.com/content/kb/home/cq5/Development/HowToConfigureSlingDatasource.html

  • How to create user in UME when using ABAP as datasource

    hi, everyone
    We are using ABAP as EP user datasource, when create user in EP, it says "Current user has user creation permissions in the UME, but cannot create users in the back-end system (data source). The original and possibly untranslated message was: "No active writeable datasource found for user creation, check your Persistence Configuration."
    But we can not create in UME neither, anyone know how to do this?
    Lee

    Hi,
    Solution would be to disconnect the UME from ABAP and reboot the portal, create the user in UME, and revert back to the UME/ABAP connection again... but this is not supported:
    Changing Data Source
    Once you have chosen this data source configuration, you cannot change to any other data source configuration. For details, see SAP Note 718383.
    Source: http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/af3ac012d32e78e10000000a155369/frameset.htm
    Ask the autorisation team of the ABAP stack that is connected to you UME to create the user for you is the only solution.
    Cheers,
    Benjamin

  • ECC 5.0 / BI - RSA5 Datasources

    Hi,
    Can anybody please tell me the difference between datasources found on RSA5 on ECC side and on BI side.
    Thanks,
    JB

    Hi,
    Standard datasources available in RSA5, whatever required datasources first u will check in RSA6 of src system , if it is not there then u have to activate in RSA5.
    Replicate to BW after activating, these datasources u will assign to infosources.
    Best Regards,
    SG

  • Creation of data sources by Ant

    Hi all
    Please help me..
    when i create data source by ant(copying data-sources.xml already stored in my hard disk with all valid entries.)and then deploy my EAR file and get the following error:
    10g-deploy:
    [exec] ADMN-300075
    [exec] Nested exception
    [exec] Resolution:
    [exec] Base Exception:
    [exec] javax.naming.NamingException
    [exec] Lookup error: javax.naming.AuthenticationException: RMIConnection Disconnected; nested exception is:
    [exec] javax.naming.AuthenticationException: RMIConnection Disconnected
    [exec] javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: RMIConnection Disconnected; nested exception is:
    [exec] javax.naming.AuthenticationException: RMIConnection Disconnected [Root exception is javax.naming.AuthenticationException: RMIConnection Disconnected]
    [exec] at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:168)
    [exec] at oracle.ias.sysmgmt.utility.Oc4jUtil.getOC4JApplicationServerAdministrator(Unknown Source)
    [exec] at oracle.ias.sysmgmt.deployment.j2ee.runtime.RuntimeIf.getOC4JApplicationServerAdministrator(Unknown Source)
    [exec] at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.deployOnSingleInstance(Unknown Source)
    [exec] at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.doExecute(Unknown Source)
    [exec] at oracle.ias.sysmgmt.deployment.j2ee.runtime.RuntimeIf.execute(Unknown Source)
    [exec] at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.doEvaluateDeploy(Unknown Source)
    [exec] at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.evaluate(Unknown Source)
    [exec] at oracle.ias.sysmgmt.task.TaskMaster.sync_evaluate(Unknown Source)
    [exec] at oracle.ias.sysmgmt.task.TaskMaster.internal_evaluate(Unknown Source)
    [exec] at oracle.ias.sysmgmt.task.RemoteEvaluate.execCommand(Unknown Source)
    [exec] at oracle.ias.sysmgmt.task.DaemonWorker.run(Unknown Source)
    [exec] Caused by: javax.naming.AuthenticationException: RMIConnection Disconnected
    [exec] at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2523)
    [exec] at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2339)
    [exec] at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1781)
    [exec] at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:721)
    [exec] at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:149)
    [exec] ... 11 more
    BUILD SUCCESSFUL
    Total time: 4 minutes 58 seconds
    But when i crete data source using Oracle enterprise manager,I m able to deploy my EAR file successfully.
    Can nebody please tell me how can i create data source manually by ant script ant then deploy my appln. successfully
    The entries done by me in data-sources.xml are:
    <data-source class="com.evermind.sql.orionCMTDataSource" location="jdbc/los" connection-driver="oracle.jdbc.driver.OracleDriver" username="dbprod_test" password="dbprod_test" url="jdbc:oracle:thin:@//10.0.52.160:1521/orcl" name="jdbc/los"><description>LOSDB</description></data-source
    Thanks in advance..

    user534925,
    Do you want to create a global datasource or one for a specific J2EE application?
    For a global datasource, you can use the "admin.jar" file.
    Type the following command for more details:
    java -jar admin.jar -helpOne of the options is "-installDataSource".
    You should be able to launch "admin.jar" from an "ant" script (I think -- I don't use "ant").
    Sorry, I don't remember how to set up a datasource for a specific application.
    (And I'm too lazy to search for it for you, now :-)
    Good Luck,
    Avi.

  • Error deploying Bean with EJB QL statement in ejb-jar.xml

    Hi,
    I'm using Oracle iAS 9i Rev:9.03.
    I've tried to deploy a Entity Bean with the following EJB QL Query:
    &lt;/cmp-field&gt;
    &lt;query&gt;
    &lt;query-method&gt;
    &lt;method-name&gt;findByProcessStep&lt;/method-name&gt;
    &lt;method-params&gt;
    &lt;method-param&gt;java.lang.Integer&lt;/method-param&gt;
    &lt;method-param&gt;java.lang.Integer&lt;/method-param&gt;
    &lt;/method-params&gt;
    &lt;/query-method&gt;
    &lt;ejb-ql&gt;SELECT OBJECT(p) FROM Processparameter AS p WHERE p.stepid=?1 AND p.stepversion=?2&lt;/ejb-ql&gt;
    &lt;/query&gt;
    &lt;/entity&gt;
    Without the query statement everything works fine. As soon as I include it I get the following Error message from dcmctl:
    ADMN-300075
    Nested exception
    Base Exception:
    java.rmi.RemoteException:Failure to initialize EJBQL descriptors: java.lang.RuntimeException: No method found for XML query element: Ambiguous or invalid &lt;query-method&gt;
    Is this an Oracle iAS error or is there an error in my query?
    Thanks in advance
    Jens

    try :
    p.stepid and p.stepversion are correct insert into &lt;cmp-field&gt; ?
    and Processparameter is the correct name of &lt;abstract-schema-name&gt;?
    is your &lt;ejb-ql&gt; insert in the right &lt;entity&gt; ?
    findByProcessStep(Integer, Integer) is the unique name in your ejb-jar? and in the (LocalHome ||RemoteHome)

  • Application deployment is failed (9.0.4, Java Edition)

    When I try to deploy application I get the following error:
    ADMN-300075
    Nested exception
    Base Exception:
    com.evermind.server.rmi.OrionRemoteException:Class not found: ru.cboss.core.exceptions.SystemException; nested exception
    is:
    java.lang.ClassNotFoundException: ru.cboss.core.exceptions.SystemException
    com.evermind.server.rmi.OrionRemoteException: Class not found: ru.cboss.core.exceptions.SystemException
    at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1527)
    at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1480)
    at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
    at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
    at __Proxy0.deploy(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.deployOnSingleInstance(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.doExecute(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.runtime.RuntimeIf.execute(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.doEvaluateDeploy(Unknown Source)
    at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.evaluate(Unknown Source)
    at oracle.ias.sysmgmt.task.TaskMaster.sync_evaluate(Unknown Source)
    at oracle.ias.sysmgmt.task.TaskMaster.internal_evaluate(Unknown Source)
    at oracle.ias.sysmgmt.task.RemoteEvaluate.execCommand(Unknown Source)
    at oracle.ias.sysmgmt.task.DaemonWorker.run(Unknown Source)
    Nested exception is:
    java.lang.ClassNotFoundException: ru.cboss.core.exceptions.SystemException
    at com.evermind.server.rmi.RMIClassLoader.findClass(RMIClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:219)
    at com.evermind.server.rmi.RMIInputStream.resolveClass(RMIInputStream.java:131)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at com.evermind.server.rmi.RMIConnection.handleMethodInvocationResponse(RMIConnection.java:1647)
    at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:408)
    at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:287)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    Inspecting application-deployments directory, I found out thet server can't deploy EJB-module. But it is very strange, because if I use standalone OC4J - deployment was successful. It doesn't matter what tools I use to deploy either EM or dcmctl.

    thank you for your answer, but I can solve this problem. The problem is the logging system for the application is needed in the log file in specified dir, but this dir had not been created. Internal application exception mechanizm try to throw this exception, but it had not been loaded by classloader, probably.

  • Problem in Filling Pool, In ConnectionPooling Code:Urgent Plz

    Hi All,
    I m using this program for Connection Pooling.
    import java.sql.*;
    import javax.sql.*;
    import java.util.*;
    import java.io.*;
    import javax.naming.*;
    public class ConnectionPool implements Runnable{
      private DataSource datasource;
      private int maxConnections;
      private int initialConnections;
      private boolean waitIfBusy;
      private boolean connectionPending = false;
      private Vector<java.sql.Connection> availableConnections;
      private Vector<java.sql.Connection> busyConnections;
      public ConnectionPool()throws SQLException {
        try{
             Context ic = new InitialContext();
              this.datasource = (DataSource)ic.lookup("java:msgds");                    
              System.out.println("DataSource Found msgds");
         }catch(Exception e){
              System.out.println("Error in ConnectionPool COnstructor While Locatin ashishds");
        this.waitIfBusy = true;   
        this.waitIfBusy = waitIfBusy;
        this.maxConnections = 5;
        this.initialConnections = 2;
        availableConnections = new Vector<java.sql.Connection>(2);
        busyConnections = new Vector<java.sql.Connection>();
        for(int i=0; i<initialConnections; i++) {
          availableConnections.addElement(makeNewConnection());
      public synchronized Connection getConnection()
          throws SQLException {
        if (!availableConnections.isEmpty()) {
          Connection existingConnection =
            (Connection)availableConnections.lastElement();
          int lastIndex = availableConnections.size() - 1;
          availableConnections.removeElementAt(lastIndex);
          // If connection on available list is closed (e.g.,
          // it timed out), then remove it from available list
          // and repeat the process of obtaining a connection.
          // Also wake up threads that were waiting for a
          // connection because maxConnection limit was reached.
          if (existingConnection.isClosed()) {
            notifyAll(); // Freed up a spot for anybody waiting
            return(getConnection());
          } else {
            busyConnections.addElement(existingConnection);
            return(existingConnection);
        } else {
          // Three possible cases:
          // 1) You haven't reached maxConnections limit. So
          //    establish one in the background if there isn't
          //    already one pending, then wait for
          //    the next available connection (whether or not
          //    it was the newly established one).
          // 2) You reached maxConnections limit and waitIfBusy
          //    flag is false. Throw SQLException in such a case.
          // 3) You reached maxConnections limit and waitIfBusy
          //    flag is true. Then do the same thing as in second
          //    part of step 1: wait for next available connection.
          if ((totalConnections() < maxConnections) &&
              !connectionPending) {
            makeBackgroundConnection();
          } else if (!waitIfBusy) {
            throw new SQLException("Connection limit reached");
          // Wait for either a new connection to be established
          // (if you called makeBackgroundConnection) or for
          // an existing connection to be freed up.
          try {
            wait();
          } catch(InterruptedException ie) {}
          // Someone freed up a connection, so try again.
          return(getConnection());
      // You can't just make a new connection in the foreground
      // when none are available, since this can take several
      // seconds with a slow network connection. Instead,
      // start a thread that establishes a new connection,
      // then wait. You get woken up either when the new connection
      // is established or if someone finishes with an existing
      // connection.
      private void makeBackgroundConnection() {
        connectionPending = true;
        try {
          Thread connectThread = new Thread(this);
          connectThread.start();
        } catch(OutOfMemoryError oome) {
          // Give up on new connection
      public void run() {
        try {
          Connection connection = makeNewConnection();
          synchronized(this) {
            availableConnections.addElement(connection);
            connectionPending = false;
            notifyAll();
        } catch(Exception e) { // SQLException or OutOfMemory
          // Give up on new connection and wait for existing one
          // to free up.
      // This explicitly makes a new connection. Called in
      // the foreground when initializing the ConnectionPool,
      // and called in the background when running.
      private Connection makeNewConnection()
          throws SQLException {
        try {    
          // Establish network connection to database
          Connection connection = datasource.getConnection();
          return(connection);
        } catch(Exception cnfe) {
          // Simplify try/catch blocks of people using this by
          // throwing only one exception type.
          throw new SQLException("Error in makeNewConnection() : " +cnfe);
      public synchronized void free(Connection connection) {
        busyConnections.removeElement(connection);
        availableConnections.addElement(connection);
        // Wake up threads that are waiting for a connection
        notifyAll();
      public synchronized int totalConnections() {
        return(availableConnections.size() +
               busyConnections.size());
      /** Close all the connections. Use with caution:
       *  be sure no connections are in use before
       *  calling. Note that you are not <I>required</I> to
       *  call this when done with a ConnectionPool, since
       *  connections are guaranteed to be closed when
       *  garbage collected. But this method gives more control
       *  regarding when the connections are closed.
      public synchronized void closeAllConnections() {
        closeConnections(availableConnections);
        availableConnections = new Vector<java.sql.Connection>();
        closeConnections(busyConnections);
        busyConnections = new Vector<java.sql.Connection>();
      private void closeConnections(Vector connections) {
        try {
          for(int i=0; i<connections.size(); i++) {
            Connection connection =
              (Connection)connections.elementAt(i);
            if (!connection.isClosed()) {
              connection.close();
        } catch(SQLException sqle) {
          // Ignore errors; garbage collect anyhow
      public synchronized String toString() {
        String info =
          "ConnectionPool(Data Source is :"+datasource+ ")" +
          ", available=" + availableConnections.size() +
          ", busy=" + busyConnections.size() +
          ", max=" + maxConnections;
        return(info);
    }To Test This code, I had created one Servlet. In This Servlet I m calling like this:
    in
    init(){
         connectionPool = new ConnectionPool();
    }in
    in
    service(){
         private ConnectionPool connectionPool=null;
         connection = connectionPool.getConnection();
    }in destroy of
    destroy{
         if(connectionPool != null){
                  connectionPool.closeAllConnections();     
    }The Problem is that, Many a times it work, many a times it shows following Error:
    09:56:35,109 WARN  [JBossManagedConnectionPool] Unable to fill pool
    org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException:
    Listener refused the connection with the following error:
    ORA-12516, TNS:listener could not find available handler with matching protocol stack
    The Connection descriptor used by the client was:
    192.168.1.8:1521
            at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFa
    ctory.java:177)
            at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConn
    ectionPool.java:539)
            at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.fillToMin(InternalManagedConnectionPool.java:486)
            at org.jboss.resource.connectionmanager.PoolFiller.run(PoolFiller.java:74)
            at java.lang.Thread.run(Thread.java:595)
    Caused by: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12516, TNS:listener could not find available handler with matching protocol stack
    The Connection descriptor used by the client was:
    192.168.1.8:1521
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:261)
            at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
            at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
            at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
            at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
            at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
            at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFa
    ctory.java:169)
            ... 4 moreI M using JBoss 4.0, With OracleXE. I had defined my DataSource-> msgds in mydb-ds.xml of deploy folder of JBoss.
    which is like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <datasources>
      <local-tx-datasource>
        <jndi-name>msgds</jndi-name>
        <connection-url>jdbc:oracle:thin:@192.168.1.8:1521</connection-url>   
        <driver-class>oracle.jdbc.OracleDriver</driver-class>
        <!-- The login and password -->
        <user-name>ashish</user-name>
        <password>ashish</password>
        <min-pool-size>5</min-pool-size>
        <max-pool-size>100</max-pool-size>
        <idle-timeout-minutes>0</idle-timeout-minutes>
      </local-tx-datasource>
    </datasources>I want to know whether This is a right approach to do Connection Pooling. How can I implement this Using Commons.
    What changes i need to made in my mydb-ds.xml if I use Commons Package and also in the code.

    never ask for help to be sent to your email, always post in this thread so that if someone else has the same question they can get the help too.
    this should help get you started... just make sure you get the apache dbcp package (you may need some commons things too, like commons pool)
    private BasicDataSource dataSource;
    * This function actually initializes the datasource, which is
    * in charge of setting up the BasicDataSource, which handles
    * all the database pooling.
    protected synchronized void initDataSource() {
         loadProperties(); // this loads my database properties from a config file
         try {
              dataSource = new BasicDataSource();
              dataSource.setDefaultAutoCommit(true);
              dataSource.setDefaultCatalog(catalogName);
              dataSource.setDriverClassName(jdbcDriver);
              dataSource.setUsername(jdbcUserID);
              dataSource.setPassword(jdbcPassword);
              dataSource.setUrl(jdbcURL);
              dataSource.setMinIdle(minCons);
              dataSource.setMaxIdle(maxCons);
              dataSource.setMaxActive(maxCons);
              dataSource.setMaxWait(5000); // milliseconds to wait for connection if none are available
              dataSource.setAccessToUnderlyingConnectionAllowed(true);
              // will validate each connection before handing it out
              dataSource.setTestOnBorrow(true);
              dataSource.setValidationQuery("select getDate()");
              // setup to test idle objects in the pool
              dataSource.setTestWhileIdle(true);
              dataSource.setTimeBetweenEvictionRunsMillis(600000); // run every 10 minutes
              dataSource.setMinEvictableIdleTimeMillis(60000);  // only examine connections idle for more than 10 minutes
              dataSource.setNumTestsPerEvictionRun(-3); // when this is negative one Nth of connections will be examined
         } catch (Exception e) {
              //whatever you want
    public Connection getConnection() {
         try {
              Connection con = dataSource.getConnection();
              if(con == null) {
                   throw new Exception("Error: DataSource gave a null connection object");
              return con;
         } catch (Exception e) {
              // whatever
    public void freeConnection(Connection con) {
         freeConnection(con, false);
    public void freeConnection(Connection con, boolean isError) {
         try {
              if(con == null) return;
              if(!con.isClosed()) {
                   if(isError && !con.getAutoCommit()) {
                        con.rollback();
                   con.clearWarnings();
                   con.close(); // this adds the con back to the pool
         } catch(Exception e) {
              // whatever
    }     

  • Getting error while creating the user in user administration in portal

    Hi folks,
         i am unable to create the user in user administration in portal due to the following error,
    could you please help regarding this issue
    "Current user has user creation permissions in the UME, but cannot create users in the back-end system (data source). The original and possibly untranslated message was: "No active writeable datasource found for user creation, check your Persistence Configuration.".

    Hi All,
    I am closing this thread as this is not in the correct forum.  This should be opened in LDAP or UME.  Please open the thread under the correct heading.
    Beth Maben
    EP - Senior Support Consultant
    AGS Primary Support, Business Suite & Technology
    Please see the UWL Wiki @
    http://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq  ***

  • Error while trying to deploy the application (invalid AccountType).

    Hello.
    Error while trying to deploy the planning application (EPMA).
    invalid AccountType
    Rejecting Member PL_Brt_L.2.
    invalid AccountType
    Rejecting Member PL_Brt_L.3.2.
    And not updated outline.
    PL_Brt_L.2 - Account Type = Revenue
    PL_Brt_L.3.2 - Account Type = Revenue
    If a change to the Revenue Expence, the error goes away and the outline changes.
    EPM 11.1.2.1
    1-st server: planning, essbase
    2-nd server: epma
    3-th server: oracle db
    thanks in advance

    Hi,
    I tried using dcmctl but still got the following error.
    Oracle 8i database is running but noone is using it except that this application uses it.
    Pls help
    D:\oraJ2EE\dcm\bin>dcmctl deployapplication -f d:\oraJ2ee\j2ee\elink\applications\advecto.ear -
    a myapp
    ADMN-300075
    D:\oraJ2EE\dcm\bin>dcmctl getError -v -d
    ADMN-300075
    Nested exception
    Base Exception:
    java.rmi.RemoteException:null; nested exception is:
    java.lang.OutOfMemoryError
    Nested exception
    Root Cause: null; nested exception is:
    java.lang.OutOfMemoryError
    java.rmi.RemoteException: null; nested exception is:
    java.lang.OutOfMemoryError
    java.lang.OutOfMemoryError
    <<no stack trace available>>
    Thanks
    Srinath

  • Error while deploying application using enterprise manager website and dcmctl

    Hi,
    I am trying to deploy a huge ear file using enterprise manager website of Oracle 9iAs Rel 2.
    The deployment fails with the following error.
    Deployment failed: Nested exception Root Cause: null; nested exception is: java.lang.OutOfMemoryError. null; nested exception is: java.lang.OutOfMemoryError
    We are able to deploy the same ear file using stand-alone container. We are planning for deployment in few days to go it live. Pls suggest what could be the problem.
    Hardware Used:-
    DellServer Intel P3 dual processor 1.2GHz
    1GB RAM
    2GB virtual memory,
    40GB free hard-drive.
    Apart from 9ias enterprise edition, this system has Oracle database also on it. But the database is not being used at all by anyone.
    No other software is installed on the system
    Software:-
    Windows 2000 Server sp2
    Oracle 9ias Release 2 Enterprise Edition (Installed J2EE and Webcache)
    Oracle 8i Database 8.1.6.0.0
    Size of application:-
    130 EJBs (107 CMP + remaining Session Beans)
    1700 JSPs
    3 servlets
    Packaged properly into jar,war,ear structure.
    the size of ear file is about 13MB.
    I tried using dcmctl but still got the following error.
    Oracle 8i database is running but noone is using it except that this application uses it.
    Pls help
    D:\oraJ2EE\dcm\bin>dcmctl deployapplication -f d:\oraJ2ee\j2ee\elink\applications\advecto.ear -
    a myapp
    ADMN-300075
    D:\oraJ2EE\dcm\bin>dcmctl getError -v -d
    ADMN-300075
    Nested exception
    Base Exception:
    java.rmi.RemoteException:null; nested exception is:
    java.lang.OutOfMemoryError
    Nested exception
    Root Cause: null; nested exception is:
    java.lang.OutOfMemoryError
    java.rmi.RemoteException: null; nested exception is:
    java.lang.OutOfMemoryError
    java.lang.OutOfMemoryError
    <<no stack trace available>>
    Are there any mandatory patches to be applied after installing 9ias Rel2?
    Thanks
    Srinath

    Try to fragment the 'ear' in less than 64k blocks or don't transmit as long raw.
    Please let me know if this works.

  • Problem while deploying ear application in OAS

    Hello,
    I am trying to undeploy application or redeploy, its is giving exception below exception
    ADMN-300071
    No ApplicationInfo is associated with application named: example1
    oracle.ias.sysmgmt.deployment.j2ee.exception.J2eeDeploymentException: No ApplicationInfo is associated with application named: example1 ,
    Again i have tried to deploy application freshly, it is telling already application is exists, i am not getting what we can do, even i have checked list of applications , the above application is present in list ,
    i am also getting admn-300075
    i am not able to deploy, redeploy or undeploy , i am not able to do anything.
    Thanks,
    Chaitanya

    I removed the jar files from /lib/ext and putted el-api.jar by myself in /lib directory. Now I can deploy my application as EAR file without problems but when I try to deploy it directly through JDeveloper the problem is the same:
        [#|2013-08-22T09:43:22.507+0200|SEVERE|glassfish3.1.2|org.apache.catalina.core.ContainerBase|_ThreadID=98;_ThreadName=Thread-2;|ContainerBase.addChild: start:
        org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.ClassNotFoundException:oracle.adf.share.glassfish.listener.ADFGlassFishAppLifeCycleListener
    I do understand that I should have this JAR but I do not know where to find it and where to put then.
    Can you help in this point? Thanks

  • Creation of User id in UME

    Dear All,
    I am facing with the following problem when I try to create User id using UME,
    "Current user has user creation permissions in the UME, but cannot create users in the back-end system (data source). The original and possibly untranslated message was: "No active writeable datasource found for user creation, check your Persistence Configuration.".
    Please help on this.
    Thanks & Regards,
    Venkat.

    Hi Prateek,
    Thanks for reply.
    I have assigned role SAP_BC_JSF_COMMUNICATION_RO & SAP J2EEADMIN to my user id and try to create user id in UME.But i was getting same error.
    Can you please help on this.
    Regards,
    Venkat.

Maybe you are looking for

  • Oracle 9i and 10G professionals required

    Hi All, A company in Tanzania is looking for Oracle 9i and 10G professionals for immediate requirement. Those who are looking for change and has 4 to 5 years experience can send in your resumes to [email protected] Indians are preffered. Mention "ORJ

  • CRM Datasources for Activities & Business Partner Address

    Hi Experts, Can you please help in understanding following issue?- For both these datasources- 1) 0CRM_SALES_ACT_1 2) 0BP_DEF_ADDRESS I can see huge queue stacked up in CRM side in tcode SMQ1/RSA7. But delta loads for these datasources bring exactly

  • Work Flow Question

    I'm dealing with a bunch of HD media, and I need to know if this work flow makes sense or is counterproductive (quality wise). If I work in a DV timeline so I can view it on a TV- do all of my dissolves, etc. and then copy my finished timeline into a

  • How to correct design view?

    I got a strange problem in Design View:  I set up Foundation 3. Works fine, shows exactly as it should be in a browser preview. But it shows horrible in design. Normally I work in the split view. Code on top, design below. Right now I might as well w

  • HFM can not authentificate MSAD users

    Hello, we have an issue on our HFM (9.2.0.3) server. We want to use externall authentification with MSAD. Shared service server is correctly configure for that an it works fine ( it works fine for our Workspace / BI+ server as well). But, HFM is not