Getting exception while trying to connect mysql database

hi
i am using mysql as database while connecting to database using jsp i am getting the following exception
"java.lang.ClassNotFoundException:com.mysql.jdbc.Dr iver"
can any one tell wha tis the actual problem
regards

If you've tens of applications on the server which
makes use of the same driver/JAR, then you can put
this JAR in the classpath of the server to save
WAR/EAR space. And about differing versions: I am not
used to do so. Otherwise just put the different/older
version in the classpath of the webapp and then give
it higher priority in the classloader.If you are using Enterprise Applications, disk space for the code should be your last concern. If you don't have enough of that for each of the applications to have their own space for the third party jars that they use, then you need a new server, as the one you have is not going to be able to handle the load anyway.
And as far as fiddling around with the classpath to avoid jarfile "collision" or incapability, good luck. The first time you add a new application all the others will stop working and you will have to spend two days reordering the classpath properly, so that they all work again. I know, because I have seen it happen, even though I suggested to them to do it the other way, they insisted on doing things the way you suggested and, like I said, as soon as they added the next application, the server was down for two days, until they got all of the classpath/(classloader priority) issues straightened out.

Similar Messages

  • Getting Exception while trying to get Connection

    Getting Exception while trying to get Connection from Data Source in ejbCreate() for the First time when ejbCreate() is called.
    Thanks in Advance

    Hello Mallidi,
    And the exception is ?
    Cheers, Tsvetomir

  • RCU-6130:Action failed.RCU-6131:Error while trying to connect to database

    Hi,
    Iam facing issue while installing RCU in UBUNTU, its unable to create MDS schema showing "RCU-6130:Action failed.RCU-6131:Error while trying to connect to database" error.
    Any solutions welcome plz

    2013-03-20 17:53:17.450 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/mds_user.sql'Line Number: 30
    2013-03-20 17:53:17.450 rcu:Extracted SQL Statement: [CREATE USER &&1 IDENTIFIED BY &&2 DEFAULT TABLESPACE &&3 TEMPORARY TABLESPACE &&4]
    2013-03-20 17:53:17.450 rcu:Statement Type: 'DDL Statement'
    JDBC SQLException - ErrorCode: 1920SQLState:42000 Message: ORA-01920: user name 'DEV_MDS' conflicts with another user or role name
    JDBC SQLException handled by error handler
    2013-03-20 17:53:17.475 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/mds_user.sql'Line Number: 32
    2013-03-20 17:53:17.475 rcu:Extracted SQL Statement: [GRANT connect TO &&1]
    2013-03-20 17:53:17.475 rcu:Statement Type: 'DDL Statement'
    2013-03-20 17:53:17.542 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/mds_user.sql'Line Number: 33
    2013-03-20 17:53:17.543 rcu:Extracted SQL Statement: [GRANT create type TO &&1]
    2013-03-20 17:53:17.543 rcu:Statement Type: 'DDL Statement'
    2013-03-20 17:53:17.559 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/mds_user.sql'Line Number: 34
    2013-03-20 17:53:17.559 rcu:Extracted SQL Statement: [GRANT create procedure TO &&1]
    2013-03-20 17:53:17.559 rcu:Statement Type: 'DDL Statement'
    2013-03-20 17:53:17.576 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/mds_user.sql'Line Number: 35
    2013-03-20 17:53:17.576 rcu:Extracted SQL Statement: [GRANT create table TO &&1]
    2013-03-20 17:53:17.576 rcu:Statement Type: 'DDL Statement'
    2013-03-20 17:53:17.592 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/mds_user.sql'Line Number: 36
    2013-03-20 17:53:17.593 rcu:Extracted SQL Statement: [GRANT create sequence TO &&1]
    2013-03-20 17:53:17.593 rcu:Statement Type: 'DDL Statement'
    2013-03-20 17:53:17.609 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/mds_user.sql'Line Number: 39
    2013-03-20 17:53:17.609 rcu:Extracted SQL Statement: [ALTER USER &&1 QUOTA unlimited ON &&3]
    2013-03-20 17:53:17.610 rcu:Statement Type: 'DDL Statement'
    2013-03-20 17:53:17.634 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/mds_user.sql'Line Number: 40
    2013-03-20 17:53:17.635 rcu:Extracted SQL Statement: [DECLARE
    cnt NUMBER;
    package_not_found EXCEPTION;
    PRAGMA EXCEPTION_INIT(package_not_found, -00942);
    insufficient_privs EXCEPTION;
    PRAGMA EXCEPTION_INIT(insufficient_privs, -01031);
    BEGIN
    cnt := 0;
    SELECT count(*) INTO cnt FROM dba_tab_privs WHERE grantee = 'PUBLIC'
    AND owner='SYS' AND table_name='DBMS_OUTPUT'
    AND privilege='EXECUTE';
    IF (cnt = 0) THEN
    -- Grant MDS user execute on dbms_output only if PUBLIC
    -- doesn't have the privilege.
    EXECUTE IMMEDIATE 'GRANT execute ON dbms_output TO &&1';
    END IF;
    cnt := 0;
    SELECT count(*) INTO cnt FROM dba_tab_privs WHERE grantee = 'PUBLIC'
    AND owner='SYS' AND table_name='DBMS_LOB'
    AND privilege='EXECUTE';
    IF (cnt = 0) THEN
    -- Grant MDS user execute on dbms_lob only if PUBLIC
    -- doesn't have the privilege.
    EXECUTE IMMEDIATE 'GRANT execute ON dbms_lob TO &&1';
    END IF;
    EXCEPTION
    -- If the user doesn't have privilege to access dbms_* package,
    -- database will report that the package cannot be found. RCU
    -- even doesn't throw the exception to the user, since ORA-00942
    -- is an ignored error defined in its global configuration xml
    -- file.
    WHEN package_not_found THEN
    RAISE insufficient_privs;
    WHEN OTHERS THEN
    RAISE;
    END;
    2013-03-20 17:53:17.635 rcu:Statement Type: 'BEGIN/END Anonymous Block'
    2013-03-20 17:53:17.694 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 27
    2013-03-20 17:53:17.694 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 28
    2013-03-20 17:53:17.694 rcu:Extracted SQL Statement: [SET ECHO ON]
    2013-03-20 17:53:17.694 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.694 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 29
    2013-03-20 17:53:17.695 rcu:Extracted SQL Statement: [SET FEEDBACK 1]
    2013-03-20 17:53:17.695 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.695 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 30
    2013-03-20 17:53:17.695 rcu:Extracted SQL Statement: [SET NUMWIDTH 10]
    2013-03-20 17:53:17.695 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.695 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 31
    2013-03-20 17:53:17.695 rcu:Extracted SQL Statement: [SET LINESIZE 80]
    2013-03-20 17:53:17.695 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.695 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 32
    2013-03-20 17:53:17.695 rcu:Extracted SQL Statement: [SET TRIMSPOOL ON]
    2013-03-20 17:53:17.695 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.696 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 33
    2013-03-20 17:53:17.696 rcu:Extracted SQL Statement: [SET TAB OFF]
    2013-03-20 17:53:17.696 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.696 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 34
    2013-03-20 17:53:17.696 rcu:Extracted SQL Statement: [SET PAGESIZE 100]
    2013-03-20 17:53:17.696 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.696 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration//mds/sql/cremds-rcu.sql'Line Number: 35
    2013-03-20 17:53:17.696 rcu:Extracted SQL Statement: [ALTER SESSION SET CURRENT_SCHEMA=&&1]
    2013-03-20 17:53:17.696 rcu:Statement Type: 'DDL Statement'
    2013-03-20 17:53:17.712 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremds.sql'Line Number: 36
    2013-03-20 17:53:17.713 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremds.sql'Line Number: 37
    2013-03-20 17:53:17.713 rcu:Extracted SQL Statement: [SET ECHO ON]
    2013-03-20 17:53:17.713 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.713 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremds.sql'Line Number: 38
    2013-03-20 17:53:17.713 rcu:Extracted SQL Statement: [SET FEEDBACK 1]
    2013-03-20 17:53:17.713 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.713 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremds.sql'Line Number: 39
    2013-03-20 17:53:17.713 rcu:Extracted SQL Statement: [SET NUMWIDTH 10]
    2013-03-20 17:53:17.713 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.714 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremds.sql'Line Number: 40
    2013-03-20 17:53:17.714 rcu:Extracted SQL Statement: [SET LINESIZE 80]
    2013-03-20 17:53:17.714 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.714 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremds.sql'Line Number: 41
    2013-03-20 17:53:17.714 rcu:Extracted SQL Statement: [SET TRIMSPOOL ON]
    2013-03-20 17:53:17.714 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.714 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremds.sql'Line Number: 42
    2013-03-20 17:53:17.714 rcu:Extracted SQL Statement: [SET TAB OFF]
    2013-03-20 17:53:17.714 rcu:Skipping Unsupported Statement
    2013-03-20 17:53:17.714 rcu:Extracting Statement from File Name: '/obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremds.sql'Line Number: 43
    2013-03-20 17:53:17.715 rcu:Extracted SQL Statement: [SET PAGESIZE 100]
    2013-03-20 17:53:17.715 rcu:Skipping Unsupported Statement
    /obiapps/RCU/rcuHome/rcu/integration/mds/sql/cremdcmtbs.sql (No such file or directory)

  • Getting error while trying to connect to application

    Hi All,
    I am getting below error while trying to connect to application
    [4/23/12 6:20:49:930 EDT] 000001c7 SQLConnection E com.primavera.infr.log.CommonsLoggingAdapter error Establish connection error.
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:254)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:386)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:438)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:164)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:752)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    at com.primavera.infr.db.PoolableConnection.byte(Unknown Source)
    at com.primavera.infr.db.SQLConnectionPool.try(Unknown Source)
    at com.primavera.infr.db.SQLConnectionPool.getConnection(Unknown Source)
    at com.primavera.infr.db.SQLConnectionPool.new(Unknown Source)
    at com.primavera.infr.db.SQLConnectionPool.try(Unknown Source)
    at com.primavera.infr.db.SQLConnectionPool$2.execute(Unknown Source)
    at com.primavera.infr.threadpool.ThreadPool.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:595)
    [4/23/12 6:20:49:936 EDT] 000001c7 SysServices I com.primavera.infr.log.CommonsLoggingAdapter info Connections are being cleared due to validation failure for database: P3ED
    java.sql.SQLException: Establish connection error.
    at com.primavera.infr.db.SQLConnectionPool.getConnection(Unknown Source)
    at com.primavera.infr.db.SQLConnectionPool.new(Unknown Source)
    at com.primavera.infr.db.SQLConnectionPool.try(Unknown Source)
    at com.primavera.infr.db.SQLConnectionPool$2.execute(Unknown Source)
    at com.primavera.infr.threadpool.ThreadPool.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: com.primavera.PhoenixException: Establish connection error.
    at com.primavera.infr.db.SQLConnectionPool.try(Unknown Source)
    ... 6 more
    Thanks in advance.

    Hello,
    this issue is related with database connection. Please, create the database connection again (with dbconfig.cmd), restart your app server and try to log into P6 again.
    Check that your port number, instance (or database name) , users are correct.

  • Getting exception while trying to lookup jmsconnectionfactory

    Hi All,
              I am getting an exception while trying to do a lookup JMSConnection Factory.
              javax.naming.InvalidNameException: Exception in lookup. [Root exception is org.omg.CosNaming.NamingContextPackage.InvalidName: IDL:omg
              .org/CosNaming/NamingContext/InvalidName:1.0]
              I have two different machines i have installed my program. On one its working perfectly will but on other machine its giving this error. There is no change in code and java version on both machine.
              Do any one have clue why this will be happening. I urgently need the solution of it.
              weblogic version is : 8.1 SP6
              java version is : 1.4

    That is an iiop problem. Try using t3 protocol replacing thin client with thick client(weblogic.jar).
              - Sathish

  • Getting exception ORA-12705 while trying to connect to database from forms 9i

    Hello All,
    I have installed 9i database and I gave path for oracle home as Oracle_path while installing. then I installed 9i dev suite, Installer forced me to use different Oracle home, so I gave Odev_path as path.
    I have created server alias name from dev suite to Oracle database and I could connect to database from froms 9i. suddenly it started giving me the following exception when I try to connect database from forms 9i.
    ORA-12705 invalid or unknown NLS parameter value specified
    could some one help toresolve the issue.
    Thanks in advance
    Raj

    I have already seen this document and tried it out, but it didn't work. And I have tried out numerous other tips that I have found in different places on the web.
    Is the client installation of any relevance? I notice that this user has a different installation from the one that I have, and that he amongst other things doesn't have sql plus installed.

  • Error while trying to connect to Database using Oracle instantclient

    I have a linux box where i have downloaded"instantclient-basic-linux.x64-11.2.0.3.0.zip". I have unzipped in /opt/instantclient_11_2.
    I am using this as a client in my code for connecting to the oracle 11g database which is in a different server. I have set the below env variables.
    LD_LIBRARY_PATH=/opt/instantclient_11_2
    CLASSPATH=/opt/instantclient_11_2:...
    PATH=/opt/instantclient_11_2:...
    When i run my program i am getting the below error.
    java.sql.SQLException: ORA-12154: TNS:could not resolve the connect identifier specified
    at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:765)
    at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:414)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546)
    at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:162)
    I am trying to connect through a thick client as below.
    Class.forName ("oracle.jdbc.OracleDriver");
                   Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@hostname_orcl", userid, pwd);
    I have seen in some forums that we need to set $ORACLE_HOME and $TNS_ADMIN env variables as well. But, here i am trying to connect to a remote database. what should i set these variables to as i don't have oracle in my machine??
    Thanks

    looks like you didnt complete the install of the instant client. the ORACLE_HOME and TNS_ADMIN points to the location of the tnsnames if you dont have the full tns string in your jdbc connection string
    https://kb.berkeley.edu/jivekb/entry.jspa?externalID=1826

  • Dreamweaver CS6 - Get error when trying to connect to database..

    When trying to connect to a database in Dreamweaver CS6 - I keep getting this error... 'An unknown error has occurred'.  I've exhausted all google hits.. and have tried EVERY combination possible during the past 4 years... SOS - please help me..  Thanks!

    Moving it yet again to the correct Dreamweaver forum: Developing server-side applications in Dreamweaver.
    Usually, "an unknown error has occurred" means that there's something wrong with your testing server definition. Have you followed the instructions here: http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html ?

  • Getting error while trying to connect to the oracle database using SQL Deve

    Hi everybody,
    I installed sql developer and want to make a new connection, but it shows:Status: Failure- Test failed:IO Error:The Network Adapter could not establish the connection.
    Please anybody help me. Appreciate you, in help.
    Thank You,

    This is usually a problem with either your connection definition, or the basic network setup.
    Try following the trouble shooting steps here

  • Getting exceptions while trying to set index

    I'm trying to create an index using the following code:
    NamedCache cache = this.getPrimaryDAO().getCache();
    cache.addIndex(new ReflectionExtractor("getStateCode"), true, null);
    I get the following Unsupported operation exception:
    java.lang.UnsupportedOperationException
    at com.tangosol.coherence.component.util.CacheHandler.addIndex(CacheHandler.CDB:1)
    at com.tangosol.coherence.component.util.SafeNamedCache.addIndex(SafeNamedCache.CDB:1)
    at com.geico.oasis.coverage.VehicleCoverageDAOCacheImpl.populateCache(VehicleCoverageDAOCacheImpl.java:66)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:163)
    at $Proxy2.populateCache(Unknown Source)
    at com.geico.oasis.cache.SimpleCacheExplorer.main(SimpleCacheExplorer.java:152)
    I'm not sure why this exception occurs and can't find the classes
    com.tangosol.coherence.component.util.CacheHandler and
    com.tangosol.coherence.component.util.SafeNamedCache
    in the javadoc.
    I am absolutely positive that the "getStateCode" method exists in the cache objects.

    Gary,
    Thanks for your help regarding the distributed scheme. I have another question regarding indexes.
    I was able to add indexes to a cache. This cache holds objects which contain all the rows in one of our database tables.
    I run a sql query using hibernate on the database table, and then run the same query using filters on the cache. I am not noticing a significant performance gain. Is there something I'm doing wrong?
    Here's what I'm trying to do:QueryMap cache = (QueryMap)this.getPrimaryDAO().getCache();
    Filter filterStateEq = new EqualsFilter("getStateCode", state);
    Filter filterCompanyEq = new EqualsFilter("getCompanyCode", company);
    Filter filterCoverageEq = new EqualsFilter("getCovCode", coverage);
    Filter filterEffDateLE  = new DateLessEqualsFilter("getEffectiveDate", effectiveDate);
    Filter filterExpDateGE  = new DateGreaterEqualsFilter("getExpirationDate", effectiveDate);
    Filter filterAnd = new AllFilter(new Filter[]
        {filterStateEq, filterCompanyEq, filterLobEq, filterEffDateLE, filterExpDateGE});
    Set filteredSet = cache.keySet(filter);Basically I'm trying to simulate a sql query:
    select * from <table> where state = <state@gt;
    and company = <company>
    and covcode = <covcode>
    and ......

  • Getting exception while trying to access OIM from a standalone java program

    Hi All,
    When i am trying to run the below java class i am getting some exception. Please suggest.
    import java.util.Hashtable;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.Vector;
    import com.thortech.xl.util.config.ConfigurationClient;
    import Thor.API.tcResultSet;
    import Thor.API.tcUtilityFactory;
    import Thor.API.Operations.tcGroupOperationsIntf;
    import Thor.API.Operations.tcUserOperationsIntf;
    import Thor.API.Security.ClientLoginUtility;
    import Thor.API.Security.LoginHandler.LoginSession;
    public class OIMAPI {
    public static void main(String[] args) {
    try{
    System.out.println("Startup...");
    System.out.println("Getting configuration...");
    ConfigurationClient.ComplexSetting config =
    ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
    System.out.println("Login...");
    Hashtable env = config.getAllSettings();
    tcUtilityFactory ioUtilityFactory = new tcUtilityFactory(env,"xelsysadm","xelsysadm");
    if (ioUtilityFactory!=null){
    System.out.println("Login OK...");
    System.out.println("Getting utility interfaces...");
    tcUserOperationsIntf moUserUtility = (tcUserOperationsIntf)ioUtilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
    System.out.println("Starting processing...");
    for (int i=0;i<2;i++){
    Map attrs = new Hashtable();
    attrs.put("Users.User ID","testuser"+i);
    attrs.put("Users.Last Name","lastname"+i);
    attrs.put("Users.First Name","firstname"+i);
    attrs.put("Organizations.Key","1");
    attrs.put("Users.Role","Full-Time");
    attrs.put("Users.Xellerate Type","End-User");
    attrs.put("Users.Password","welcome1");
    long t1 = System.currentTimeMillis();
    long key = moUserUtility.createUser(attrs);
    long t2 = System.currentTimeMillis();
    System.out.println("User testuser" + i + " with key=" +
    key + " created in "+(t2-t1));
    System.out.println("Processing DONE...");
    ioUtilityFactory.close();
    }catch(Exception e ){
    System.out.println("---" + e.getMessage());
    e.printStackTrace();
    ---Unable to locate a login configuration
    java.lang.SecurityException: Unable to locate a login configuration
    at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:97)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:308)
    at java.lang.Class.newInstance(Class.java:261)
    at javax.security.auth.login.Configuration$3.run(Configuration.java:221)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:215)
    at javax.security.auth.login.LoginContext$1.run(LoginContext.java:170)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.init(LoginContext.java:167)
    at javax.security.auth.login.LoginContext.<init>(LoginContext.java:404)
    at Thor.API.Security.LoginHandler.jbossLoginHandler.login(Unknown Source)
    at Thor.API.Security.ClientLoginUtility.login(Unknown Source)
    at Thor.API.tcUtilityFactory.<init>(Unknown Source)
    at OIMAPI.main(OIMAPI.java:28)
    Caused by: java.io.IOException: Unable to locate a login configuration
    at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206)
    at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:95)
    ... 17 more

    you need to tell it where the config files are
    java -DXL.HomeDir=C:\oimqa\xlclient -Djava.security.auth.login.config=C:\oimqa\xlclient\Config\authwl.conf
    the authwl.conf file will have a different name depending on which app server you use
    authwl is for Web Logic (for example).

  • Getting Exception when trying to connect to IMAP store. Please Help

    DEBUG: not loading system providers in <java.home>/lib
    DEBUG: successfully loaded optional custom providers from URL: jar:file:/C:/James/javamail-1.3.3_01/lib/imap.jar!/META-INF/javamail.providers
    DEBUG: successfully loaded optional custom providers from URL: jar:file:/C:/James/javamail-1.3.3_01/lib/pop3.jar!/META-INF/javamail.providers
    DEBUG: successfully loaded optional custom providers from URL: jar:file:/C:/James/javamail-1.3.3_01/lib/smtp.jar!/META-INF/javamail.providers
    DEBUG: successfully loaded default providers
    DEBUG: Tables of loaded providers
    DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
    DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsy stems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc]}
    DEBUG: successfully loaded optional address map from URL: jar:file:/C:/James/javamail-1.3.3_01/lib/smtp.jar!/META-INF/javamail.address.map
    {mail.imap.port=143, mail.imap.user=*************, mail.debug=true, mail.imap.host=*************, mail.imap.class=com.sun.mail.imap.IMAPStore}
    C:\_home\programs\wsad51\eclipse\jre
    got connection to the imap server
    DEBUG: mail.imap.class property exists and points to com.sun.mail.imap.IMAPStore
    java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError: javax.mail.Session: method getDebugOut()Ljava/io/PrintStream; not found
         at com.sun.mail.imap.IMAPStore.<init>(IMAPStore.java:170)
         at java.lang.reflect.Constructor.newInstance(Native Method)
         at javax.mail.Session.getService(Session.java:566)
         at javax.mail.Session.getStore(Session.java:362)
         at javax.mail.Session.getStore(Session.java:324)
         at javax.mail.Session.getStore(Session.java:303)
         at com.equifax.equicom.batch.email.parse.TestIMAP.main(TestIMAP.java:66)
    javax.mail.NoSuchProviderException: imap
         at javax.mail.Session.getService(Session.java:570)
         at javax.mail.Session.getStore(Session.java:362)
         at javax.mail.Session.getStore(Session.java:324)
         at javax.mail.Session.getStore(Session.java:303)
         at com.equifax.equicom.batch.email.parse.TestIMAP.main(TestIMAP.java:66)

    The googleapi.jar contains copies of some javamail classes. Here a few I found in my output:
    javax.mail.event.MessageCountListener from googleapi.jar
    javax.mail.Session from googleapi.jar
    javax.mail.MessagingException from googleapi.jar
    javax.mail.NoSuchProviderException from googleapi.jar
    This particular google api is the old SOAP google service that is no longer allowing new registrations, but still has support for existing API key holders, like me :-). Thought this might be a common jar in most libraries, so worth mentioning.
    Don't forget, you can debug your loaded classes with java -verbose MyApp to find those rogue libraries.

  • Am trying to connect to database using thin driver am getting an erro

    Hi,
    Am trying to connect to database using thin driver am getting an error.may i know the exact problem. If any one provide the solution in steps wise better.The following is the error.
    Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.oracledriver
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at JdbcEx.main(JdbcEx.java:15)
    Thanks
    sreekanth

    Am trying to connect to database using thin driver am getting an error.may i know the exact problem. If any one provide the solution in steps wise better.The following is the error.
    Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.oracledriverThe JAR file is not in your classpath. Depends on what JAR you are using (ojdbc14.jar, ojdbc5.jar, etc). Bottom line, it can't find the class for the driver due to the JAR not being in the classpath.

  • HT4436 When trying to sign in I keep getting the error message, "iCloud encounterd a error while trying to connect to the server". How can I get signed in?

    When trying to sign in to iCloud, I always get the message, iCloud has encountered a error while trying to connect to the server. How do I get in????

    Hello,
    Try following step and check if issue gets resolved or not.
    Find Acrobat.exe on your computer.  Right click the program and click 'Troubleshoot Compatibility'.  Set the compatibility to Windows XP service pack 3.
    Regards,
    Anoop

  • Trying to setup new iCloud in system preferences and get error message: "iCloud encountered an error while trying to connect to the server."

    Here's the sequence of events:
    Setting up a new iMac.
    Migration Assistant was aborted during setup and a normal setup was completed.
    Then ran Migration Assistant from the newly setup account.
    It ran fine, but put all the data in a new account called "user".
    Renamed "user" to a new name, renamed the home folder to a new name following these instructions: OS X: How to change your account name or home directory name
    Delete the account we originally created, so just have one account with the name we want and all the data, email. Works fine.
    Sign into the App Store with the account we share for purchases.
    Now, the problem:
    Go to System Preferences to setup iCloud with a new Apple ID
    Get this error: "iCloud encountered an error while trying to connect to the server."
    So I'm unable to setup iCloud for photo stream, FaceTime, etc.
    Internet works fine, we can get mail, etc.
    Rebooting doesn't help
    Ideas?

    never mind the problem is gone this morning.

Maybe you are looking for