Making database connection to externally identified user

I try to make a database connection using an externally identified user.
I have not succeeded so far.
In Oracle Designer it is possible to just fill in /@SID in the username field.
Somebody knows a workaround ?
regards,
Timo Schijf

Timo,
This question is not related to JHeadstart. Can you please post the question on the JDeveloper forum?
Thank you,
Steven Davelaar,
JHeadstart Team.

Similar Messages

  • Domain on externally identified users

    Hi,
    I'm trying to use externally identified users connecting from Win2000 client to Unix Server (HP-UX). My question is if that there is a way to only allow users from a certain domain to connect to the server or always use domain when identifying the users when they are connecting to the database?
    In Win2000 I found that you can set OSAUTH_PREFIX_DOMAIN in registry on the server to achieve what I want.
    /Hakan

    Hi,
    I'm trying to use externally identified users connecting from Win2000 client to Unix Server (HP-UX). My question is if that there is a way to only allow users from a certain domain to connect to the server or always use domain when identifying the users when they are connecting to the database?
    In Win2000 I found that you can set OSAUTH_PREFIX_DOMAIN in registry on the server to achieve what I want.
    /Hakan

  • Best practice for making database connection to Forms 10 apps?

    Hi
    To upgrade our Forms applications we are moving from version 3 to 10.
    Our old system runs Forms applications and the connection to the database is based on the individual user. This means that any tables or views used require that the user has specific access granted to them. We have a bespoke system to manage this which generates scripts (GRANT statements) based on lists of tables and users and their appropriate access.
    I have concerns that managing the table access for thousands of individual users in the Forms 10 environment is going to be technically difficult, especially with RADs to consider. Is it feasible to generate and frequently refresh RAD scripts to maintain the current list of users and their permissions?
    I am trying to decide if it is better to:
    A) Connect with the same database user (such as "APP_USER") which has access to everything
    or
    B) Connect with individual usernames/passwords
    Currently, the individual user database passwords are generated weekly and users have means to obtain them (once signed in) rather than setting and remembering them. Some views refer to the Oracle system parameter "USER" to decide what data is returned so this functionality would need to be preserved.
    Any help is greatly appreciated, especially if you can tell me if option A or B is how you connect at your site.

    Thanks for the advice so far.
    It would appear that connecting with individual usernames is not a fundamental error, which I was concerned about.
    Will it still be necessary to create and refresh RAD scripts, or is this only an issue when using OID? We have OID here already because we have a website using Oracle Portal. The sign-on process for this connects to Active Directory for authentication.
    I do not like the idea of having to schedule a refresh of RAD scripts, perhaps 3 times a day, just to keep it current. I do not think the RADs are expected to change as frequently as this, but perhaps other forum members have experience of this?

  • Proxy login from externally authenticated user

    Hi Experts,
    I created an externally authenticated user in database. And can login without password with below syntax.
    SQL> connect / @TESTDB
    Connected.
    SQL> show user;
    USER is "SCOTT"
    This scott user has a proxy permission to another DBuser PROXY_USER.
    I got the syntax but that works only from Database OS.
    sqlplus [proxy_user]/
    SQL*Plus: Release 11.1.0.6.0 Production on Mon Nov 15 16:28:47 2010
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Release 11.1.0.6.0 - 64bit Production
    I can connect as externally authenticated user from windows CLIENT running on Release 10.2.0.1.0
    SQL> connect / @TESTDB
    Connected.
    But the above mentioned Proxy connectivity syntax fails with below from CLIENT
    SQL> connect [proxy_user]/ @TESTDB
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] | /
    But the same syntax works from Database OS!
    I can login from TOAD but can't login from SQLDEVELOPER or SQLPLUS
    My sqldeveloper version is:
    Version 2.1.1.64
    Build MAIN-64.45
    and sqlplus is:
    SQL*Plus: Release 10.2.0.1.0
    Any idea?
    Thanks.
    Edited by: Nadvi on Nov 18, 2010 3:09 PM

    Hi Nadvi
    If you get SQLPLUS working SQLDeveloper (thick jdbc/oci/instant client) is certainly worth trying.
    I am not sure what is the issue with your setup the proxy usecases I am familiar with are:
    Through the SQLDeveloper ui
    There are two ways of doing proxy logins:
    where p1 is proxy user and c1 is proxy client:
    1/single session method (if no 2nd password or distinguished name required)
    on main connection popup
    user: p1[c1]
    password: p1
    2/Two session method
    Main Connection popup
    user: p1
    password p1
    popup connection authentication
    proxy client: c1
    none or password or distinguished name
    -Turloch
    SQLDeveloper Team

  • How to share the same Database Connection when using several Task Flows ?

    Hi All,
    I’m using JDev 11.1.1.3.0.
    I’m developing ADF Fusion Applications (ABC BC, ADF Faces…)
    These applications are deployed on a Weblogic server.
    Each application has only one Application Module.
    All Application Modules have the same connection type defined: JDBC DataSource : jdbc/GCCDS
    It is working fine.
    I’ve also developed Task Flow Applications for small thinks that are reused in multiple main applications.
    Each Task Flow Application has also one Application Module with the same connections type as main applications.
    All these task flows are deployed to JAR file (ADF Library JAR File) and are reused on my main applications. (drag and drop from the Resource Palette to ADF Regions….).
    There are some parameters passed to Task Flows, so that they can filter data depending on which main applications they are called from.
    Everything is working perfectly.
    All my main applications are using more and more task flows. Which is nice for the reusability etc…?
    Only ONE PROBLEM: DATABASE CONNECTIONS.
    Every Task Flows service made a database connection. So one user may have 10 database connections for the same adf page. And when there are 100 users that are working at the same time, it becomes a problem.
    How to share the same database connections for the main applications and all task flows which are used in the main application?
    Best Regards
    Nicolas

    Hi John,
    When I open a ADF Library JAR file of one of my task flow. (gcc_tf_recentSites.jar)
    I can see TF_RecentSitesService.xml and TF_RecentSitesServiceImpl.class in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service folder
    + bc4j.xcfg in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service\common folder.
    bc4j.xcfg details are
    +<?xml version = '1.0' encoding = 'UTF-8'?>+
    +<BC4JConfig version="11.1" xmlns="http://xmlns.oracle.com/bc4j/configuration">+
    +<AppModuleConfigBag ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<AppModuleConfig DeployPlatform="LOCAL" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model" name="TF_RecentSitesServiceLocal" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +<Custom JDBCDataSource="jdbc/GCCDS"/>+
    +</AppModuleConfig>+
    +<AppModuleConfig name="TF_RecentSitesServiceShared" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService" DeployPlatform="LOCAL" JDBCName="gccdev" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model">+
    +<AM-Pooling jbo.ampool.maxpoolsize="1" jbo.ampool.isuseexclusive="false"/>+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +</AppModuleConfig>+
    +</AppModuleConfigBag>+
    +</BC4JConfig>+
    So, it seems that the Application Module is packaged with the task flow....
    Is it normal ?
    Regards
    Nicolas

  • Using database connection in a servlet and get errors after 8 hours

    Hey,
    I'm running a poker script using applet/servlets and it works great. But for some reason about about 8 hours that database layer stops working. At first I thought it was the connections to mySQL that were timing out (because im using connection pooling) but after turning pooling off (I now create the connection each time) I'm still seeing that same error (I can create a connection but when I do an action ex. like a select statment I get an error). What i'm wondering could it be that the driver I load with Class.forName() some how unloads it's self after x amount of time not being used? Not sure if that is it but if anyone could give me some insight that would be great. The Error i recieve is below:
    INFO: Database Event:DatabaseController: Error executing database query.
    ERROR: Communications link failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.net.SocketException
    MESSAGE: Software caused connection abort: recv failed
    STACKTRACE:
    java.net.SocketException: Software caused connection abort: recv failed
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(Unknown Source)
         at com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:104)
         at com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:144)
         at com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:172)
         at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1839)
         at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2288)
         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2784)
         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1531)
         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1622)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:2370)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:2297)
         at com.mysql.jdbc.Statement.executeQuery(Statement.java:1183)
         at com.softnet.database.DatabaseController.executeDatabaseQuery(DatabaseController.java:190)
         at com.softnet.games.GameServer.validateUser(GameServer.java:438)
         at com.softnet.games.GameServer.handleData(GameServer.java:113)
         at com.softnet.network.HttpConnectionThread.run(HttpServletListener.java:191)
    ** END NESTED EXCEPTION **
    I know the query is good because it works all other times just not after about 8 hours.
    --Z3r0CooL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hey,
    Thanks for the responces. For the connection pooling I would open 5 connections and keep them open. So i though maybe after 8 hours after not being used they would timeout. Thats why i turned off conection pooling and create a new connection each time. Anyways i'll post the code below incase i made a mistake somewhere.
    package com.softnet.database;
    /************************ DatabaseControler **************************/
    import java.sql.*;
    import java.util.*;
    import com.softnet.database.DatabaseConnectionPool;
    import com.softnet.database.DatabaseSettings;
    public class DatabaseController
    implements DatabaseListener
         //Used to make sure the database driver is loaded
         private boolean databaseDriverState = false;
         //Used to store a database connection
         private Connection databaseConnection = null;
         //If to user connection pooling or not
         private boolean useConnectionPooling = false;
         //Used to hold the connection pool varible
         private DatabaseConnectionPool connectionPool = null;
         //Used to store database settings
         private DatabaseSettings databaseSettings;
         //Used to hold the DatabaseController listeners
         private List databaseControllerListeners = new ArrayList();
         //min number of connections for connection pool
         private int minNumberOfConnections = 1;
         //max number of connections for connection pool -1 is unlimited
         private int maxNumberOfConnections = -1;
         //DatabaseController Constructors
         public DatabaseController(DatabaseSettings databaseSettings)
              this.databaseSettings = databaseSettings;
              databaseDriverState = loadDatabaseDriver(databaseSettings.getDatabaseDriver());
         public DatabaseController(DatabaseSettings databaseSettings, boolean useConnectionPooling, int minNumberOfConnections, int maxNumberOfConnections)
              this.databaseSettings = databaseSettings;
              this.useConnectionPooling = useConnectionPooling;
              this.minNumberOfConnections = minNumberOfConnections;
              this.maxNumberOfConnections = maxNumberOfConnections;
              if(useConnectionPooling == true)
                   connectionPool = new DatabaseConnectionPool(databaseSettings, minNumberOfConnections, maxNumberOfConnections);
                   connectionPool.addDatabaseListener(this);
              else
                   databaseDriverState = loadDatabaseDriver(databaseSettings.getDatabaseDriver());
         public DatabaseController() {}
         //Database Settings Get/Set
         public DatabaseSettings getDatabaseSettings()
              return databaseSettings;
         public void setDatabaseSettings(DatabaseSettings databaseSettings)
              this.databaseSettings = databaseSettings;
         //Connection Pooling Get/Set
         public boolean getConnectionPooling()
              return useConnectionPooling;
         public void setConnectionPooling(boolean useConnectionPooling, int minNumberOfConnections, int maxNumberOfConnections)
              this.useConnectionPooling = useConnectionPooling;
              this.minNumberOfConnections = minNumberOfConnections;
              this.maxNumberOfConnections = maxNumberOfConnections;
              if(useConnectionPooling == true)
                   if(connectionPool == null)
                        connectionPool = new DatabaseConnectionPool(databaseSettings, minNumberOfConnections, maxNumberOfConnections);
                        connectionPool.addDatabaseListener(this);
              else
                   if(connectionPool != null)
                        connectionPool.destroyConnections();
                        connectionPool.removeDatabaseListener(this);
                        connectionPool = null;
         //Return if there connected
         public boolean isConnected()
              boolean isConnected;
              if(databaseConnection != null)
                   isConnected = true;
              else
                   isConnected = false;
              return isConnected;
         //Used to connect to database or get a connection for the connection pool
         public void connect()
              if(databaseDriverState == false)
                   databaseDriverState = loadDatabaseDriver(databaseSettings.getDatabaseDriver());
              //If we dont have a current connection, make one
              if(databaseConnection == null && databaseDriverState == true)
                   if(useConnectionPooling == false)
                        try
                             databaseConnection = DriverManager.getConnection(databaseSettings.getDatabaseURL(), databaseSettings.getUserName(), databaseSettings.getUserPassword());
                        catch (SQLException sqle)
                             //Raise event
                             raiseDatabaseEvent("DatabaseController: Error connecting to database. \nERROR: " + sqle.getMessage());
                             databaseConnection = null;
                   else
                        databaseConnection = connectionPool.getConnection();
         //Used to disconnect from the database or give back the connection to the connection pool
         public void disconnect()
              if(databaseConnection != null)
                   if(useConnectionPooling == false)
                        try
                             //Close DB Connection
                             databaseConnection.close();
                        catch(SQLException ignore) {}
                        finally
                             databaseConnection = null;
                   else
                        connectionPool.returnConnection(databaseConnection);
                        databaseConnection = null;
         public ResultSet executeDatabaseQuery(String sSQL)
              ResultSet databaseResult = null;
              if(databaseConnection != null)
                   try
                        Statement databaseStatement = databaseConnection.createStatement();
                        databaseResult = databaseStatement.executeQuery(sSQL);
                   catch(SQLException sqle)
                        //Raise event
                        raiseDatabaseEvent("DatabaseController: Error executing database query.\nSQL: " + sSQL + "\nERROR: " + sqle.getMessage());
              return databaseResult;
         public int executeDatabaseUpdate(String sSQL)
              int rowsAffected = -1;
              if(databaseConnection != null)
                   try
                        Statement databaseStatement = databaseConnection.createStatement();
                        rowsAffected = databaseStatement.executeUpdate(sSQL);
                   catch(SQLException sqle)
                        //Raise event
                        raiseDatabaseEvent("DatabaseController: Error executing database update.\nSQL: " + sSQL + "\nERROR: " + sqle.getMessage());
              return rowsAffected;
         //Used to load the Database Driver
         private boolean loadDatabaseDriver(String databaseDriver)
              boolean driverLoaded;
              if(databaseDriver.equals("") == false)
                   try
                        //Load Database Driver
                        Class.forName(databaseDriver).newInstance();
                        driverLoaded = true;
                   catch (Exception e)
                        //Raise event
                        raiseDatabaseEvent("DatabaseController: Error loading database driver. \nERROR: " + e.getMessage());
                        driverLoaded = false;
              else
                   driverLoaded = false;
              return driverLoaded;
         //Wrap the DatabaseConnectionPool Error to the DatabaseController
         public void databaseEventOccurred(DatabaseEvent de)
              raiseDatabaseEvent(de.getErrorMessage());
         //Event Handling Code
         //Used to add database listeners (Its sync'd so you can change the listeners when firing an event)
    public synchronized void addDatabaseListener(DatabaseListener databaseControllerListener)
    databaseControllerListeners.add(databaseControllerListener);
    //Used to remove a listener from the list (Its sync'd so you can change the listeners when firing an event)
    public synchronized void removeDatabaseListener(DatabaseListener databaseControllerListener)
    databaseControllerListeners.remove(databaseControllerListener);
    //Used to send the raise event to the listeners
    private synchronized void raiseDatabaseEvent(String databaseError)
    DatabaseEvent databaseEvent = new DatabaseEvent(this, databaseError);
    Iterator listeners = databaseControllerListeners.iterator();
    while(listeners.hasNext())
         DatabaseListener listener = (DatabaseListener) listeners.next();
    listener.databaseEventOccurred(databaseEvent);
    /********************* DatabaseConnectionPool **************/
    package com.softnet.database;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import com.softnet.database.*;
    import com.softnet.database.DatabaseSettings;
    public class DatabaseConnectionPool
         //min number of connections
         private int minNumberOfConnections = 1;
         //max number of connections -1 is unlimited
         private int maxNumberOfConnections = -1;
         //Store the connections
         protected Hashtable databaseConnections = null;
         //Database Info
         protected DatabaseSettings databaseSettings;
         //to hold Driver state
         private boolean databaseDriverState = false;
         //To hold connection checker
         private DatabaseConnectionCheck connectionChecker = null;
         //Used to hold the DatabaseConnectionPool listeners
         private List databaseConnectionPoolListeners = new ArrayList();
         public DatabaseConnectionPool(DatabaseSettings databaseSettings, int minNumberOfConnections, int maxNumberOfConnections)
              this.databaseSettings = databaseSettings;
              this.minNumberOfConnections = minNumberOfConnections;
              this.maxNumberOfConnections = maxNumberOfConnections;
              //Load Driver
              databaseDriverState = loadDatabaseDriver(databaseSettings.getDatabaseDriver());
              //Create connection
              createConnections();
         public DatabaseConnectionPool(int minNumberOfConnections, int maxNumberOfConnections)
              this.minNumberOfConnections = minNumberOfConnections;
              this.maxNumberOfConnections = maxNumberOfConnections;
         //Database Settings Get/Set
         public DatabaseSettings getDatabaseSettings()
              return databaseSettings;
         public void setDatabaseSettings(DatabaseSettings databaseSettings)
              this.databaseSettings = databaseSettings;
         //Driver State Get
         public boolean getDatabaseDriverState()
              return databaseDriverState;
         public void createConnections()
              if(databaseDriverState == false)
                   databaseDriverState = loadDatabaseDriver(databaseSettings.getDatabaseDriver());
              //Create all connections and load the minimum in the Hashtable
              if(databaseConnections == null)
                   if(databaseDriverState == true && minNumberOfConnections != 0)
                        databaseConnections = new Hashtable();
                        for(int i = 0; i < minNumberOfConnections; i++)
                             try
                                  databaseConnections.put(DriverManager.getConnection(databaseSettings.getDatabaseURL(), databaseSettings.getUserName(), databaseSettings.getUserPassword()), Boolean.FALSE);
                             catch(SQLException sqle)
                                  //Problem break loop and destroy any connections
                                  destroyConnections();
                                  //Raise event
                                  raiseDatabaseEvent("DatabaseConnectionPool: Error creating database connections. \nERROR: " + sqle.getMessage());
                                  break;
              //If no connection check exists create one
              if(connectionChecker == null)
                   connectionChecker = new DatabaseConnectionCheck(this);
                   connectionChecker.start();
         public Connection getConnection()
              Connection connection = null;
              boolean errorWithConnection = false;
              Enumeration connections = databaseConnections.keys();
              synchronized (databaseConnections)
                   while(connections.hasMoreElements())
                        errorWithConnection = false;
                        connection = (Connection) connections.nextElement();
                        Boolean state = (Boolean) databaseConnections.get(connection);
                        //If connection is not used, use it.
                        if(state == Boolean.FALSE)
                             try
                                  connection.setAutoCommit(true);
                             catch(SQLException e)
                                  //Problem with connection remove connection and replace it
                                  databaseConnections.remove(connection);
                                  try
                                       connection = DriverManager.getConnection(databaseSettings.getDatabaseURL(), databaseSettings.getUserName(), databaseSettings.getUserPassword());
                                  catch(SQLException sqle)
                                       errorWithConnection = true;
                             if(errorWithConnection == false)
                                  // Update the Hashtable to show this one's taken
                                  databaseConnections.put(connection, Boolean.TRUE);
                                  // Return the connection
                                  return connection;
                   //All connections being used check to max to see if we can make a new one
                   if(maxNumberOfConnections == -1 || maxNumberOfConnections > databaseConnections.size())
                        try
                             connection = DriverManager.getConnection(databaseSettings.getDatabaseURL(), databaseSettings.getUserName(), databaseSettings.getUserPassword());
                        catch(SQLException sqle)
                             errorWithConnection = true;
                        if(errorWithConnection == false)
                             databaseConnections.put(connection, Boolean.TRUE);
                             return connection;
              //If not connections free and max connections reached wait for a free connection
              return getConnection();
         public void returnConnection(Connection connection)
              boolean errorWithConnection = false;
              //Make sure connection still works
              try
                   connection.setAutoCommit(true);
              catch(SQLException e)
                   //Problem with connection remove connection and replace it
                   databaseConnections.remove(connection);
                   try
                        connection = DriverManager.getConnection(databaseSettings.getDatabaseURL(), databaseSettings.getUserName(), databaseSettings.getUserPassword());
                   catch(SQLException sqle)
                        errorWithConnection = true;     
              if(errorWithConnection == false)
                   databaseConnections.put(connection, Boolean.FALSE);
         public void destroyConnections()
              Connection connection = null;
              if(databaseConnections != null)
                   //Close all connections
                   Enumeration connections = databaseConnections.keys();
                   while (connections.hasMoreElements())
                        connection = (Connection) connections.nextElement();
                        try
                             connection.close();
                        catch(SQLException ignore) {}
                   //Free up hashtable
                   databaseConnections = null;
         private boolean loadDatabaseDriver(String databaseDriver)
              boolean driverLoaded;
              if(databaseDriver.equals("") == false)
                   try
                        //Load Database Driver
                        Class.forName(databaseDriver);
                        driverLoaded = true;
                   catch (ClassNotFoundException cnfe)
                        //Raise event
                        raiseDatabaseEvent("DatabaseController: Error loading database driver. \nERROR: " + cnfe.getMessage());
                        driverLoaded = false;
              else
                   driverLoaded = false;
              return driverLoaded;
         //Event Handling Code
         //Used to add database listeners (Its sync'd so you can change the listeners when firing an event)
    public synchronized void addDatabaseListener(DatabaseListener databaseConnectionPoolListener)
    databaseConnectionPoolListeners.add(databaseConnectionPoolListener);
    //Used to remove a listener from the list (Its sync'd so you can change the listeners when firing an event)
    public synchronized void removeDatabaseListener(DatabaseListener databaseConnectionPoolListener)
    databaseConnectionPoolListeners.remove(databaseConnectionPoolListener);
    //Used to send the raise event to the listeners
    private synchronized void raiseDatabaseEvent(String databaseError)
    DatabaseEvent databaseEvent = new DatabaseEvent(this, databaseError);
    Iterator listeners = databaseConnectionPoolListeners.iterator();
    while(listeners.hasNext())
         DatabaseListener listener = (DatabaseListener) listeners.next();
    listener.databaseEventOccurred(databaseEvent);
    class DatabaseConnectionCheck extends Thread
         private DatabaseConnectionPool connectionPool;
         DatabaseConnectionCheck(DatabaseConnectionPool connectionPool)
              this.connectionPool = connectionPool;
         public void run()
              try
                   while(true)
                        //check threads every 30 seconds
                        this.sleep(300000);
                        if(connectionPool.databaseConnections != null)
                             Connection connection = null;
                             Enumeration connections = connectionPool.databaseConnections.keys();
                             synchronized (connectionPool.databaseConnections)
                                  while(connections.hasMoreElements())
                                       connection = (Connection) connections.nextElement();
                                       Boolean state = (Boolean) connectionPool.databaseConnections.get(connection);
                                       //If connection is not used, use it.
                                       if(state == Boolean.FALSE)
                                            try
                                                 connection.setAutoCommit(true);
                                            catch(SQLException e)
                                                 //Problem with connection remove connection and replace it
                                                 connectionPool.databaseConnections.remove(connection);
                                                 try
                                                      connection = DriverManager.getConnection(connectionPool.databaseSettings.getDatabaseURL(), connectionPool.databaseSettings.getUserName(), connectionPool.databaseSettings.getUserPassword());
                                                 catch(SQLException sqle)
                                                      connection = null;
                                                 // Update the Hashtable with new connection if its not null
                                                 if(connection != null)
                                                      connectionPool.databaseConnections.put(connection, Boolean.FALSE);
              catch(InterruptedException ignored) {}     
    Basicly the why it works is the connection pool hold the database connections. When the user needs a connection they use the database controller to request a connection (By create a instance and called the connect() method) and the connection is either created or grabed from the connection pool. After the user is done with the connection they call the disconnect() method which closes the connection or returns it to the connection pool.
    --Z3r0CooL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

  • Hi i am newbie to Database connectting technology

    Hi i am using SQL server instead of Oracle,but i have lack of experience in making database connection to SQL Server from Java.Could you anybody please help me,and give me a best example with code.

    There are some examples in the help files that come with the jdbc driver: [http://msdn.microsoft.com/data/jdbc/]

  • Servlets and Persistent Database Connections

    I'm looking at building an application using
    java Servlets.
    My Application will consist of many individual Java Servlets.
    I want to ensure that there is a persistent database connection so that the users do not have to log on again when a page generated via Servlet1 contains a URL to Servlet2....
    null

    Look at the Http session class in the Servlet specification. It will maintain state for you across client requests.

  • Rwservlet / oracle database connection reuse by multiple reports

    Dear all,
    I have deployed multiple web reports on Oracle Application Server 10g.
    All my reports connect to a single Oracle database.
    My question is:
    How to configure rwservlet to maitain a kind of connection pool(cached set of connections for reuse) to the database?
    I want to avoid establishing a new database connection each time a user runs a report.
    Thanks.

    you can create a CGICMD file and send the requests to cgicmd through the servlet.

  • Database connection with JRC and CR Viewer version

    Hi,
    I'm upgrading Crystalreportviewer11 to Crystalreportviewer115. I know, I need this directories: WEB_INF\Lib, WEB-INF\Classes and Crystalreportviewer115.
    Crystalreportviewer115 I take from C:\Program Files\Business Objects\common\3.5\ Crystalreportsviewer115. There is file CrConfig.xml (CrystalreportEngine.xml) in Program Files\Common Files\Business Objects\3.5\java. This file belongs to WEB-INF\Classes. But I don't know the path to find .jar files (.jar files belong to WEB_INF\Lib).
    My context.xml looks:
    My web.xml looks:
    name_appl
    Zobrazeni reportu
    crystal_image_uri
    crystalreportviewers115
    My CrystalreportEngine.xml looks:
    ../../../E3/Reports_CR11
    10
    B6W64-010S200-000KA2W-8WT1
    In this code I changed version of crystalreportviewer, other is the same. I don't know, if I should change the keycode too. This keycode was used for Crystalreportviewer11. Is it the same for Crystalreportsviewer115 or different?
    I deployed my directory WebReports to Tomcat (by Tomcat Manager). The variables are Context Path= /CRV and Configuration file URL= file:C:\WebReports\context.xml. The deploying was succesful. Then I set in Tomcat administration tool the jdbc connection. (Tomcat Server -> Service (Catalina) -> Host (localhost) -> Context (/CRV) -> Resources -> Environment Entries and Environment Entry Actions on the right tab)
    I set Name= jdbc/INFO, Type= java.lang.String, Value=
    !oracle.jdbc.driver.OracleDriver!jdbc:oracle:thin:{userid}/{ password}}@{server}:{port}:{oracle instance name}. I saved changes and commited them.I restarted Apache Tomcat service.
    I run the report. It always open a new database connection. I check user ID and password, click OK. But the report isn't running, i can't see this report in CR Viewer. But I see Database Logon screen again. Where is a problem?
    What can I set up in Tomcat administration tool yet?
    Have you some tips for upgrading CR Viewer11 to 115?
    Regards,
    Veronika

    Thank you for your answer.Please, do you know, where should I search all new .jar files? (for my WEB-INF/lib directory).
    My last logs (after running report and connection) look:
    admin log:
    +30.10.2007 14:36:22 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Entered TreeControlTestAction:perform()
    +30.10.2007 14:36:22 org.apache.catalina.core.ApplicationContext log+
    INFO: action: tree param is null
    +30.10.2007 14:36:22 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Select event on Globally Administer Data Sources
    +30.10.2007 14:37:52 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Entered TreeControlTestAction:perform()
    +30.10.2007 14:37:52 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Tree expand/contract on Catalina:type=Service,serviceName=Catalina
    +30.10.2007 14:37:52 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Found Node: Catalina:type=Service,serviceName=Catalina
    +30.10.2007 14:37:53 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Entered TreeControlTestAction:perform()
    +30.10.2007 14:37:53 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Tree expand/contract on Catalina:type=Host,host=localhost
    +30.10.2007 14:37:53 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Found Node: Catalina:type=Host,host=localhost
    +30.10.2007 14:37:55 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Entered TreeControlTestAction:perform()
    +30.10.2007 14:37:55 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Tree expand/contract on Catalina:j2eeType=WebModule,name=//localhost/CRV,J2EEApplication=none,J2EEServer=none
    +30.10.2007 14:37:55 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Found Node: Catalina:j2eeType=WebModule,name=//localhost/CRV,J2EEApplication=none,J2EEServer=none
    +30.10.2007 14:38:00 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Entered TreeControlTestAction:perform()
    +30.10.2007 14:38:00 org.apache.catalina.core.ApplicationContext log+
    INFO: action: tree param is null
    +30.10.2007 14:38:00 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Select event on Context Environment Entries Catalina:j2eeType=WebModule,name=//localhost/CRV,J2EEApplication=none,J2EEServer=none
    +30.10.2007 14:38:23 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Entered TreeControlTestAction:perform()
    +30.10.2007 14:38:23 org.apache.catalina.core.ApplicationContext log+
    INFO: action: tree param is null
    +30.10.2007 14:38:23 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Select event on Globally Administer Data Sources
    +30.10.2007 14:38:37 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Entered TreeControlTestAction:perform()
    +30.10.2007 14:38:37 org.apache.catalina.core.ApplicationContext log+
    INFO: action: tree param is null
    +30.10.2007 14:38:37 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Select event on Catalina:j2eeType=WebModule,name=//localhost/CRV,J2EEApplication=none,J2EEServer=none
    +30.10.2007 14:38:40 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Entered TreeControlTestAction:perform()
    +30.10.2007 14:38:40 org.apache.catalina.core.ApplicationContext log+
    INFO: action: tree param is null
    +30.10.2007 14:38:40 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Select event on Context Environment Entries Catalina:j2eeType=WebModule,name=//localhost/CRV,J2EEApplication=none,J2EEServer=none
    +30.10.2007 14:38:50 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Entered TreeControlTestAction:perform()
    +30.10.2007 14:38:50 org.apache.catalina.core.ApplicationContext log+
    INFO: action: tree param is null
    +30.10.2007 14:38:50 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Select event on Context Data Sources Catalina:j2eeType=WebModule,name=//localhost/CRV,J2EEApplication=none,J2EEServer=none
    +30.10.2007 14:41:04 org.apache.catalina.core.ApplicationContext log+
    SEVERE: action: Error invoking operation addResource
    javax.management.RuntimeOperationsException: Exception invoking method addResource
    +     at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:511)+
    +     at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)+
    +     at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)+
    +     at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)+
    +     at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)+
    +     at org.apache.webapp.admin.resources.SaveDataSourceAction.execute(SaveDataSourceAction.java:178)+
    +     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)+
    +     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)+
    +     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)+
    +     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:430)+
    +     at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)+
    +     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)+
    +     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)+
    +     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)+
    +     at org.apache.webapp.admin.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:123)+
    +     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)+
    +     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)+
    +     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)+
    +     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)+
    +     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)+
    +     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)+
    +     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)+
    +     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)+
    +     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)+
    +     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)+
    +     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)+
    +     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)+
    +     at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)+
    +     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)+
    +     at java.lang.Thread.run(Unknown Source)+
    Caused by: java.lang.NullPointerException
    +     at org.apache.catalina.mbeans.MBeanUtils.createObjectName(MBeanUtils.java:846)+
    +     at org.apache.catalina.mbeans.NamingResourcesMBean.addResource(NamingResourcesMBean.java:230)+
    +     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)+
    +     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)+
    +     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)+
    +     at java.lang.reflect.Method.invoke(Unknown Source)+
    +     at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:501)+
    +     ... 29 more+
    +30.10.2007 14:47:06 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Entered TreeControlTestAction:perform()
    +30.10.2007 14:47:06 org.apache.catalina.core.ApplicationContext log+
    INFO: action: tree param is null
    +30.10.2007 14:47:06 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Select event on Context Environment Entries Catalina:j2eeType=WebModule,name=//localhost/CRV,J2EEApplication=none,J2EEServer=none
    +30.10.2007 14:50:24 org.apache.catalina.core.ApplicationContext log+
    INFO: action: Debugging -- changes saved to conf/server.xml
    catalina log
    +31.10.2007 8:22:31 org.apache.coyote.http11.Http11Protocol init+
    INFO: Initializing Coyote HTTP/1.1 on http-8200
    +31.10.2007 8:22:31 org.apache.catalina.startup.Catalina load+
    INFO: Initialization processed in 1141 ms
    +31.10.2007 8:22:32 org.apache.catalina.core.StandardService start+
    INFO: Starting service Catalina
    +31.10.2007 8:22:32 org.apache.catalina.core.StandardEngine start+
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
    +31.10.2007 8:22:32 org.apache.catalina.core.StandardHost start+
    INFO: XML validation disabled
    +31.10.2007 8:22:35 org.apache.coyote.http11.Http11Protocol start+
    INFO: Starting Coyote HTTP/1.1 on http-8200
    +31.10.2007 8:22:35 org.apache.jk.common.ChannelSocket init+
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    +31.10.2007 8:22:35 org.apache.jk.server.JkMain start+
    INFO: Jk running ID=0 time=0/30  config=null
    +31.10.2007 8:22:35 org.apache.catalina.storeconfig.StoreLoader load+
    INFO: Find registry server-registry.xml at classpath resource
    +31.10.2007 8:22:35 org.apache.catalina.startup.Catalina start+
    INFO: Server startup in 3846 ms
    host - manager log is empty
    jacarta service log
    +[2007-10-30 08:32:20] [info] Running Service...+
    +[2007-10-30 08:32:20] [info] Starting service...+
    +[2007-10-30 08:32:22] [info] Service started in 1992 ms.+
    +[2007-10-30 10:29:40] [info] Service STOP signaled+
    +[2007-10-30 10:29:40] [info] Stopping service...+
    +[2007-10-30 10:29:43] [info] Service stopped.+
    +[2007-10-30 10:29:43] [info] Run service finished.+
    +[2007-10-30 10:29:43] [info] Procrun finished.+
    +[2007-10-30 10:29:49] [info] Running Service...+
    +[2007-10-30 10:29:49] [info] Starting service...+
    +[2007-10-30 10:29:50] [info] Service started in 1672 ms.+
    +[2007-10-30 11:10:11] [info] Service STOP signaled+
    +[2007-10-30 11:10:11] [info] Stopping service...+
    +[2007-10-30 11:10:13] [info] Service stopped.+
    +[2007-10-30 11:10:13] [info] Run service finished.+
    +[2007-10-30 11:10:13] [info] Procrun finished.+
    +[2007-10-30 11:10:16] [info] Running Service...+
    +[2007-10-30 11:10:16] [info] Starting service...+
    +[2007-10-30 11:10:17] [info] Service started in 1321 ms.+
    +[2007-10-30 11:23:33] [info] Service STOP signaled+
    +[2007-10-30 11:23:33] [info] Stopping service...+
    +[2007-10-30 11:23:34] [info] Service stopped.+
    +[2007-10-30 11:23:34] [info] Run service finished.+
    +[2007-10-30 11:23:34] [info] Procrun finished.+
    +[2007-10-30 11:23:38] [info] Running Service...+
    +[2007-10-30 11:23:38] [info] Starting service...+
    +[2007-10-30 11:23:39] [info] Service started in 1261 ms.+
    +[2007-10-30 14:50:27] [info] Service STOP signaled+
    +[2007-10-30 14:50:27] [info] Stopping service...+
    +[2007-10-30 14:50:28] [info] Service stopped.+
    +[2007-10-30 14:50:28] [info] Run service finished.+
    +[2007-10-30 14:50:28] [info] Procrun finished.+
    +[2007-10-30 14:50:33] [info] Running Service...+
    +[2007-10-30 14:50:33] [info] Starting service...+
    +[2007-10-30 14:50:34] [info] Service started in 1271 ms.+
    +[2007-10-30 15:11:53] [info] Service STOP signaled+
    +[2007-10-30 15:11:53] [info] Stopping service...+
    +[2007-10-30 15:11:55] [info] Service stopped.+
    +[2007-10-30 15:11:55] [info] Run service finished.+
    +[2007-10-30 15:11:55] [info] Procrun finished.+
    +[2007-10-30 15:12:01] [info] Running Service...+
    +[2007-10-30 15:12:01] [info] Starting service...+
    +[2007-10-30 15:12:02] [info] Service started in 1281 ms.+
    +[2007-10-30 15:13:44] [info] Service STOP signaled+
    +[2007-10-30 15:13:44] [info] Stopping service...+
    +[2007-10-30 15:13:46] [info] Service stopped.+
    +[2007-10-30 15:13:46] [info] Run service finished.+
    +[2007-10-30 15:13:46] [info] Procrun finished.+
    +[2007-10-30 15:13:48] [info] Running Service...+
    +[2007-10-30 15:13:48] [info] Starting service...+
    +[2007-10-30 15:13:50] [info] Service started in 1291 ms.+
    +[2007-10-30 15:57:49] [info] Console SHUTDOWN event signaled+
    +[2007-10-30 15:57:49] [info] Stopping service...+
    +[2007-10-30 15:57:50] [info] Service stopped.+
    +[2007-10-30 15:57:50] [info] Run service finished.+
    +[2007-10-30 15:57:50] [info] Procrun finished.+
    localhost log
    +30.10.2007 8:32:31 org.apache.catalina.core.ApplicationContext log+
    +INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]+
    +30.10.2007 9:39:30 org.apache.catalina.core.StandardWrapperValve invoke+
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
    +     at org.apache.jsp.param_jsp._jspService(org.apache.jsp.param_jsp:61)+
    +     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)+
    +     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)+
    +     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)+
    +     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)+
    +     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)+
    +     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)+
    +     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)+
    +     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)+
    +     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)+
    +     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)+
    +     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)+
    +     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)+
    +     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)+
    +     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)+
    +     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)+
    +     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)+
    +     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)+
    +     at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)+
    +     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)+
    +     at java.lang.Thread.run(Unknown Source)+
    +30.10.2007 10:29:56 org.apache.catalina.core.ApplicationContext log+
    +INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]+
    +30.10.2007 11:10:20 org.apache.catalina.core.ApplicationContext log+
    +INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]+
    +30.10.2007 11:23:42 org.apache.catalina.core.ApplicationContext log+
    +INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]+
    +30.10.2007 14:45:58 org.apache.catalina.core.StandardWrapperValve invoke+
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
    +     at org.apache.jsp.param_jsp._jspService(org.apache.jsp.param_jsp:61)+
    +     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)+
    +     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)+
    +     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)+
    +     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)+
    +     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)+
    +     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)+
    +     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)+
    +     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)+
    +     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)+
    +     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)+
    +     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)+
    +     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)+
    +     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)+
    +     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)+
    +     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)+
    +     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)+
    +     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)+
    +     at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)+
    +     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)+
    +     at java.lang.Thread.run(Unknown Source)+
    +30.10.2007 14:50:40 org.apache.catalina.core.ApplicationContext log+
    +INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]+
    +30.10.2007 15:12:08 org.apache.catalina.core.ApplicationContext log+
    +INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]+
    +30.10.2007 15:13:52 org.apache.catalina.core.ApplicationContext log+
    +INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]+
    stderr log
    +30.10.2007 8:32:23 org.apache.coyote.http11.Http11Protocol init+
    INFO: Initializing Coyote HTTP/1.1 on http-8200
    +30.10.2007 8:32:23 org.apache.catalina.startup.Catalina load+
    INFO: Initialization processed in 1392 ms
    +30.10.2007 8:32:23 org.apache.catalina.core.StandardService start+
    INFO: Starting service Catalina
    +30.10.2007 8:32:23 org.apache.catalina.core.StandardEngine start+
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
    +30.10.2007 8:32:23 org.apache.catalina.core.StandardHost start+
    INFO: XML validation disabled
    +30.10.2007 8:32:31 org.apache.coyote.http11.Http11Protocol start+
    INFO: Starting Coyote HTTP/1.1 on http-8200
    +30.10.2007 8:32:32 org.apache.jk.common.ChannelSocket init+
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    +30.10.2007 8:32:32 org.apache.jk.server.JkMain start+
    INFO: Jk running ID=0 time=0/210  config=null
    +30.10.2007 8:32:32 org.apache.catalina.storeconfig.StoreLoader load+
    INFO: Find registry server-registry.xml at classpath resource
    +30.10.2007 8:32:32 org.apache.catalina.startup.Catalina start+
    INFO: Server startup in 9113 ms
    +30.10.2007 10:29:40 org.apache.coyote.http11.Http11Protocol pause+
    INFO: Pausing Coyote HTTP/1.1 on http-8200
    +30.10.2007 10:29:41 org.apache.catalina.core.StandardService stop+
    INFO: Stopping service Catalina
    +30.10.2007 10:29:43 org.apache.coyote.http11.Http11Protocol destroy+
    INFO: Stopping Coyote HTTP/1.1 on http-8200
    +30.10.2007 10:29:51 org.apache.coyote.http11.Http11Protocol init+
    INFO: Initializing Coyote HTTP/1.1 on http-8200
    +30.10.2007 10:29:51 org.apache.catalina.startup.Catalina load+
    INFO: Initialization processed in 1281 ms
    +30.10.2007 10:29:51 org.apache.catalina.core.StandardService start+
    INFO: Starting service Catalina
    +30.10.2007 10:29:51 org.apache.catalina.core.StandardEngine start+
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
    +30.10.2007 10:29:51 org.apache.catalina.core.StandardHost start+
    INFO: XML validation disabled
    +30.10.2007 10:29:56 org.apache.catalina.session.StandardManager doLoad+
    SEVERE: IOException while loading persisted sessions: java.io.IOException: Unable to recover report source
    java.io.IOException: Unable to recover report source
    +     at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.readExternal(Unknown Source)+
    +     at java.io.ObjectInputStream.readExternalData(Unknown Source)+
    +     at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)+
    +     at java.io.ObjectInputStream.readObject0(Unknown Source)+
    +     at java.io.ObjectInputStream.readObject(Unknown Source)+
    +     at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1371)+
    +     at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:903)+
    +     at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:393)+
    +     at org.apache.catalina.session.StandardManager.load(StandardManager.java:320)+
    +     at org.apache.catalina.session.StandardManager.start(StandardManager.java:634)+
    +     at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:431)+
    +     at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:391)+
    +     at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1042)+
    +     at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:255)+
    +     at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)+
    +     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4053)+
    +     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)+
    +     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)+
    +     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)+
    +     at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:589)+
    +     at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:536)+
    +     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:471)+
    +     at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)+
    +     at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)+
    +     at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)+
    +     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)+
    +     at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)+
    +     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)+
    +     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)+
    +     at org.apache.catalina.core.StandardService.start(StandardService.java:450)+
    +     at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)+
    +     at org.apache.catalina.startup.Catalina.start(Catalina.java:537)+
    +     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)+
    +     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)+
    +     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)+
    +     at java.lang.reflect.Method.invoke(Unknown Source)+
    +     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)+
    +     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)+
    +30.10.2007 10:29:56 org.apache.catalina.session.StandardManager start+
    SEVERE: Exception loading sessions from persistent storage
    java.io.IOException: Unable to recover report source
    +     at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.readExternal(Unknown Source)+
    +     at java.io.ObjectInputStream.readExternalData(Unknown Source)+
    +     at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)+
    +     at java.io.ObjectInputStream.readObject0(Unknown Source)+
    +     at java.io.ObjectInputStream.readObject(Unknown Source)+
    +     at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1371)+
    +     at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:903)+
    +     at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:393)+
    +     at org.apache.catalina.session.StandardManager.load(StandardManager.java:320)+
    +     at org.apache.catalina.session.StandardManager.start(StandardManager.java:634)+
    +     at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:431)+
    +     at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:391)+
    +     at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1042)+
    +     at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:255)+
    +     at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)+
    +     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4053)+
    +     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)+
    +     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)+
    +     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)+
    +     at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:589)+
    +     at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:536)+
    +     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:471)+
    +     at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)+
    +     at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)+
    +     at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)+
    +     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)+
    +     at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)+
    +     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)+
    +     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)+
    +     at org.apache.catalina.core.StandardService.start(StandardService.java:450)+
    +     at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)+
    +     at org.apache.catalina.startup.Catalina.start(Catalina.java:537)+
    +     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)+
    +     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)+
    +     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)+
    +     at java.lang.reflect.Method.invoke(Unknown Source)+
    +     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)+
    +     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)+
    +30.10.2007 10:29:57 org.apache.coyote.http11.Http11Protocol start+
    INFO: Starting Coyote HTTP/1.1 on http-8200
    +30.10.2007 10:29:57 org.apache.jk.common.ChannelSocket init+
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    +30.10.2007 10:29:57 org.apache.jk.server.JkMain start+
    INFO: Jk running ID=0 time=0/60  config=null
    +30.10.2007 10:29:57 org.apache.catalina.storeconfig.StoreLoader load+
    INFO: Find registry server-registry.xml at classpath resource
    +30.10.2007 10:29:57 org.apache.catalina.startup.Catalina start+
    INFO: Server startup in 5979 ms
    +30.10.2007 11:10:03 org.apache.catalina.core.StandardContext reload+
    INFO: Reloading this Context has started
    +30.10.2007 11:10:11 org.apache.coyote.http11.Http11Protocol pause+
    INFO: Pausing Coyote HTTP/1.1 on http-8200
    +30.10.2007 11:10:13 org.apache.catalina.core.StandardService stop+
    INFO: Stopping service Catalina
    +30.10.2007 11:10:13 org.apache.coyote.http11.Http11Protocol destroy+
    INFO: Stopping Coyote HTTP/1.1 on http-8200
    +30.10.2007 11:10:18 org.apache.coyote.http11.Http11Protocol init+
    INFO: Initializing Coyote HTTP/1.1 on http-8200
    +30.10.2007 11:10:18 org.apache.catalina.startup.Catalina load+
    INFO: Initialization processed in 1162 ms
    +30.10.2007 11:10:18 org.apache.catalina.core.StandardService start+
    INFO: Starting service Catalina
    +30.10.2007 11:10:18 org.apache.catalina.core.StandardEngine start+
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
    +30.10.2007 11:10:18 org.apache.catalina.core.StandardHost start+
    INFO: XML validation disabled
    +30.10.2007 11:10:20 org.apache.coyote.http11.Http11Protocol start+
    INFO: Starting Coyote HTTP/1.1 on http-8200
    +30.10.2007 11:10:21 org.apache.jk.common.ChannelSocket init+
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    +30.10.2007 11:10:21 org.apache.jk.server.JkMain start+
    INFO: Jk running ID=0 time=0/80  config=null
    +30.10.2007 11:10:21 org.apache.catalina.storeconfig.StoreLoader load+
    INFO: Find registry server-registry.xml at classpath resource
    +30.10.2007 11:10:21 org.a

  • GLDI/ADI6 database connection

    GLDI is installed on a number of PC's (70)and we have recently upgraded to
    Release 11 and ADI6. The database name for Release 10.7 is the same as the new
    Release 11 database (Version 8.0.5). The problem arises when the users try to
    logon to ADI6. Because the old database name is the same as the new one, then
    the logon is not successful.
    Could you suggest a method of rolling out the new database connection for
    ADI6 to approx 70 users and remove the old GLDI database connection (without depending on user intervention.)?
    The settings are stored in Registry - HKEY_CURRENT_USER/SOFTWARE/ORACLE/GLDI/GLDI90 APPSINSTANCES
    Note:
    As a result of unsuccessful logons a file is generated on the server in
    /ph01/app/oracle/admin/PHP1/cdump.
    This could potentially cause problems on the server by filling up the file
    system.

    user13465498 wrote:
    issue 1 - Database connection not found
    In HFR, when I am running a report, which uses lot of attributes to fetch data, it is giving me error - "Database connection not found".Have you ever run this report successfully? Looks like it is not mapped to the correct database. Login to Workspace and either create or modify the db connection and map it to the report.
    issue 2 - Performance of report
    Another issue - similar report, the report, takes approx 30 mins to run, and then it returns approx 30 rows of data.(which is present in the system), is there a way the performance can be improved, because in real life, the user shall have lot of rows of data. Couple of things that could improve the performance:
    - Suppress zero and missing data if you haven't already.
    - If it is possible, let the users select dimension members from the POV or Page.
    Cheers,
    Mehmet

  • Connecting to an externally identified account

    Hi,
    Is there a way to connect to an externally identified account in a database from SQL Developer?
    Thanks,

    If I can recall, the person who got it to work was with an OPS$ account by using ALTER USER to identify the user with a password. I don't think they got it to work with external authentication.
    First of all, when I tried to use the OCI driver, it required a user id and password. Yet, for external authentication, you do not specify a user and password.
    When reading the docs for the oci jdbc driver, I could not find anything about external authentication.
    I think oracle will have to get external authentication to work via their jdbc odbc driver first before they could even consider getting it to work under sql developer.

  • Connection to external database

    Hi All,
    we have an requirement to connect SAP R/3 to external database which is oracle and java tool for data uploading.
    One of our team abaper requested us to establish the connection.
    When explored , i got some info on DB11 and DBCON table.
    I created the connection with the DBM user control and SAP user SAPR3.
    Please let me know how to test the connection further and details on connection to external database from BASIS point of view.
    Thanks

    Hi,
    Using transaction SE11, create a table (ZTABLE) with the same fields as the table in the external database, make sure that the type and lengths of the fields are identical.
    Using transaction SE11, create a view (ZTABLE_VIEW, projection view) using BASIS table ZTABLE
    Using SVRMGRL>
    create dblink REMOTE_DB as connect to remote_user identified by password; (database link created)
    drop table ZTABLE; (table dropped)
    create synonym ZTABLE for ZTABLE@REMOTE_DB; (synonym created)
    Using transaction SE16 , type in ZTABLE_VIEW and hit RETURN
    Enter value in key fields and hit execute. (displays rows from the remote table)
    In other words
    To access an external database from ABAP via DBLINK (ORACLE)
    Using transaction SE11, create a table (ZTABLE) with the same fields as the table in the external
    database, make sure that the type and lengths of the fields are identical.
    Using transaction SE11, create a view (ZTABLE_VIEW, projection view) using BASIS table ZTABLE
    Using SVRMGRL>
    create dblink REMOTE_DB as connect to remote_user identified by password; (database link created)
    drop table ZTABLE; (table dropped)
    create synonym ZTABLE for ZTABLE@REMOTE_DB; (synonym created)
    Using transaction SE16 , type in ZTABLE_VIEW and hit RETURN
    Enter  value in key fields and hit execute. (displays rows from the remote table)
    <REMOVED BY MODERATOR>
    Jagadish
    Edited by: Alvaro Tejada Galindo on Apr 8, 2008 6:08 PM

  • Run Labview as different windows user (for database connectivity)

    I have to connect to a corporate remote MSSQL-Database on the network, using the database connectivity toolkit for LabVIEW.
    The db-authentification is realized checking the windows user (ads) who acceses the datebase (not a database user / password which is standard in the database vis)
    Therefore I have to run LabVIEW as the defined windows user, different than the logged in user on the pc.
    Is that possible to realize with LabVIEW?
    Other Windows-tools allow to define the windows user/password which "run" an application - how can I do that with LabVIEW?

    Hi Zav.  There is a windows command 'runas' which _may_ let you do what you want; I haven't
    tried what you need to do, but is has worked for other tasks for us.  Try 'runas /?' for the switches.
    You will have to build your LV program into an executable, then use runas to launch it.  Is there
    a reason you can't just login to Windows as the required user?
    If you can get your db admin to allow dbuser/password authentication that would be a much better
    way to go.
    Matt

  • ACS issue - External unknown user policy database

    HI all,
    Is there any way I can get back information from an external user database into ACS:
    I have 2 ssids, both on seperate IP address ranges. I have an external unknown user policy to pass username and passwords to. In the database there are flags which distinguish between two different types of users. Can I pass this 'flag' back to ACS somehow. When a user tries to logon to one SSID I want ACS to somehow check this flag and decide if that user can  access that SSID.
    Any ideas ??

    What is your external database?

Maybe you are looking for