Datasource via JNDI vs Driver Manager

I am really desperate to use Datasource for connectivity to Oracle (rather than using the driver manager) in my little J2EE app (no EJB) on IBM WSAD 5.0.
I have some example using DB2 datasource via JNDI.
I replaced the properties with my Oracle database parameters.
as below
userid=scott
password=tiger
url=jdbc:oracle:thin:@localhost:1521:library
driver=oracle.jdbc.OracleDriver
lookupName=jdbc/library
database=library
There is an object "DB2DataSource" coming from package COM.ibm.db2.jdbc.DB2DataSource in the example code "CreateDatasource.java" I am using to create the data source.
I have added JNDI.jar(from oracle), Naming.jar(from WSAD home), nasmingClient.jar(from WSAD home) in to the project.
By looking at Oracle manual we need import com.evermind.sql.DriverManagerDataSource; and
com.evermind.server to get initialContext.
But compiler cant find them.
Can anyone tell me what is the equivalent in Oracle?
Thanks
Mei

Hold on.
This is what I think. There will be others here who might be able to build to this and provide you the solution.
All that you need to do is
1. Add the Oracle driver to the WebSphere classpath.
2. Use the Admin Console / WSAD screens to create a JDBC Driver for the Oracle Driver.
3. Create a datasource within this driver. There is step-by-step documentation on how to do this.
4. Specify a JNDI name for the datasource.
5. Lookup the DataSource and cast it to a DataSource object.
6. Call getConnection method to get a connection.
Your coding portion is only steps 5 and 6 above.
Steps 1 through 4 needs to happen in the Admin Console / WSAD tool. I have done it in both the places before and it is a fairly straightforward process. You do not need any of the jars that you are mentioning below or need to do anything special.
Vijay

Similar Messages

  • Problem with connecting [Microsoft][ODBC Driver Manager]

    I am employing the Apache Tomcat 5.5.During the time of execution one Exception occur which implies [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
    In ordinary way of execution of DataBase connectivity(without Apache Tomcat 5.5),it can successfully done.I dont know how to connect with database with tomcat 5.5.
    Could anyone please steer me to find out the solution.

    Need to configure the server.xml file in tomcat .
    <Resource name="jdbc/myoracle" auth="Container"
    type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:oracle:thin:@127.0.0.1:1521:mysid"
    username="scott" password="tiger" maxActive="20" maxIdle="10"
    maxWait="-1"/>
    More Info here
    http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

  • [ODBC Driver Manager] Function sequence error

    Hi all,
    i´m trying to built an webservice and if i try to run my code i get following
    error: [ODBC Driver Manager] Function sequence error .CAn someone tell me what
    this means?
    Here comes my code:
         static String Daten(int Nummer)
                        java.sql.Connection conn = null;
                        java.sql.Statement stmt = null;
                   try
                                                           Context ctx = null;
                                                           Hashtable ht = new Hashtable();
                                                           ht.put(Context.INITIAL_CONTEXT_FACTORY,
                                                                          "weblogic.jndi.WLInitialContextFactory");
                                                           ht.put(Context.PROVIDER_URL,
                                  "t3://localhost:7001");
                                  // Get a context for the JNDI look up
                                  ctx = new InitialContext(ht);
                                  javax.sql.DataSource ds
                                  = (javax.sql.DataSource) ctx.lookup ("webservice-data-source");
                                  conn = ds.getConnection();
                                  System.out.println("Making connection...\n");
                                  // execute some SQL statements to demonstrate the connection.
                                  stmt = conn.createStatement();
                                  System.out.println("Vor ResultSet");
                                                 ResultSet result = stmt.getResultSet(); //Bringt Fehler
                                                 final Vector erstespalte = new Vector();
                                                 final Vector zweitespalte = new Vector();
                                                 final Vector drittespalte = new Vector();
                                                 final Vector Zeilen;
                                                 final Vector end = new Vector();
                                  try {//2.Block
                                                 stmt.executeQuery("Select * from Person where Kundennummer=5");
                                                 while(result.next())
                                                                erstespalte.add(result.getObject(1));
                                                                zweitespalte.add(result.getObject(2));
                                                                drittespalte.add(result.getObject(3));
                                                           Zeilen = new Vector();
                                                                     for(Enumeration a = erstespalte.elements() ; a.hasMoreElements()
                                                                                    for(Enumeration b = zweitespalte.elements() ;b .hasMoreElements()
                                                                                              for(Enumeration c = drittespalte.elements() ; c.hasMoreElements()
                                                                                                   Zeilen.add(a.nextElement());
                                                                                                   Zeilen.add(b.nextElement());
                                                                                                   Zeilen.add(c.nextElement());
                                                                                                   end.add(Zeilen);
                                                                               }System.out.println(end);
                                                           result.close();
                                       }//2.try-Block
                   catch (SQLException e) {
                        System.out.println(e);
                                  }//1.try-Block schliessen
                                  catch (Exception e) {
                             System.out.println("Exception was thrown: " + e.getMessage());
                                            finally {
                                                      try {
                                                      if (stmt != null)
                                                           stmt.close();
                                                      if (conn != null)
                                                           conn.close();
                                                      catch (SQLException sqle) {
                                                      System.out.println("SQLException during close(): " + sqle.getMessage());
                                                      }//finally-Block schliessen
                                            return ("HAllo");
              }//Methode abschliessen
    Thank you very much for helping !!!

    Please post this in the JDBC newsgroup: weblogic.developer.interest.jdbc
    Also, please include your full error message.
    -- Rob
    Hakan wrote:
    Hi all,
    i´m trying to built an webservice and if i try to run my code i get following
    error: [ODBC Driver Manager] Function sequence error .CAn someone tell me what
    this means?
    Here comes my code:
    static String Daten(int Nummer)
    java.sql.Connection conn = null;
    java.sql.Statement stmt = null;
    try
    Context ctx = null;
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL,
    "t3://localhost:7001");
    // Get a context for the JNDI look up
    ctx = new InitialContext(ht);
    javax.sql.DataSource ds
    = (javax.sql.DataSource) ctx.lookup ("webservice-data-source");
    conn = ds.getConnection();
    System.out.println("Making connection...\n");
    // execute some SQL statements to demonstrate the connection.
    stmt = conn.createStatement();
    System.out.println("Vor ResultSet");
    ResultSet result = stmt.getResultSet(); //Bringt Fehler
    final Vector erstespalte = new Vector();
    final Vector zweitespalte = new Vector();
    final Vector drittespalte = new Vector();
    final Vector Zeilen;
    final Vector end = new Vector();
    try {//2.Block
    stmt.executeQuery("Select * from Person where Kundennummer=5");
    while(result.next())
    erstespalte.add(result.getObject(1));
    zweitespalte.add(result.getObject(2));
    drittespalte.add(result.getObject(3));
    Zeilen = new Vector();
    for(Enumeration a = erstespalte.elements() ; a.hasMoreElements()
    for(Enumeration b = zweitespalte.elements() ;b .hasMoreElements()
    for(Enumeration c = drittespalte.elements() ; c.hasMoreElements()
    Zeilen.add(a.nextElement());
    Zeilen.add(b.nextElement());
    Zeilen.add(c.nextElement());
    end.add(Zeilen);
    }System.out.println(end);
    result.close();
    }//2.try-Block
    catch (SQLException e) {
    System.out.println(e);
    }//1.try-Block schliessen
    catch (Exception e) {
    System.out.println("Exception was thrown: " + e.getMessage());
    finally {
    try {
    if (stmt != null)
    stmt.close();
    if (conn != null)
    conn.close();
    catch (SQLException sqle) {
    System.out.println("SQLException during close(): " + sqle.getMessage());
    }//finally-Block schliessen
    return ("HAllo");
    }//Methode abschliessen
    Thank you very much for helping !!!

  • ERROR reports.reportdefinition : com.crystaldecisions.reports.queryengine.driverImpl.m: JDBC Error: [Microsoft][ODBC Driver Manager] Invalid string or buffer length

    I have developed Java web application which uses Crystal Report 2013 , java 1.6 , Windows 32 bit System, All the reports are loading fine in the Following environment
    Development Environment
    Windows7 Professional Service pack 1 -32 bit
    Java - 1.6
    Internet Explorer 11
    Oracle Client 10g 32 bit ODBC driver
    Testing Environment
    Windows Server 2008 R2 Enterprise - 64 bit
    java 1.6
    Internet Explorer 9
    Oracle Client 11g 62 bit ODBC driver
    While loading reports in the 64 bit server the error occurs
    ERROR reports.reportdefinition :  com.crystaldecisions.reports.queryengine.driverImpl.m: JDBC Error: [Microsoft][ODBC Driver Manager] Invalid string or buffer length
    ERROR dataengine.datasource : Failed to read next recurring database record: database row set error.
    com.crystaldecisions.reports.reportdefinition.datainterface.j: JDBC Error: [Microsoft][ODBC Driver Manager] Invalid string or buffer length
        at com.crystaldecisions.reports.reportdefinition.datainterface.q.a(Unknown Source)
        at com.crystaldecisions.reports.dataengine.n.m(Unknown Source)
        at com.crystaldecisions.reports.dataengine.n.l(Unknown Source)
        at com.crystaldecisions.reports.dataengine.n.bn(Unknown Source)
        at com.crystaldecisions.reports.dataengine.n.bp(Unknown Source)
        at com.crystaldecisions.reports.dataengine.n.else(Unknown Source)
        at com.crystaldecisions.reports.dataengine.s.a(Unknown Source)
        at com.crystaldecisions.reports.dataengine.bk.a(Unknown Source)
        at com.crystaldecisions.reports.dataengine.bk.ab(Unknown Source)
        at com.crystaldecisions.reports.dataengine.bk.<init>(Unknown Source)
        at com.crystaldecisions.reports.dataengine.bk.if(Unknown Source)
        at com.crystaldecisions.reports.dataengine.bk.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.h(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.i.h(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.for(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bf.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.ca.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.a9.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.e.m.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.e.m.for(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.e.p.l(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.e.p.void(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.e.p.l(Unknown Source)
        at com.crystaldecisions.reports.formatter.formatter.e.p.aE(Unknown Source)
        at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
        at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
        at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
        at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
        at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
        at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
        at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
        at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
        at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
        at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
        at com.erm.controller.ALMReportsController.queryDll(ALMReportsController.java:1681)
        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.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:471)
        at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:408)
        at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
        at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:838)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at com.erm.authentication.HttpSecurityFilter.doFilter(HttpSecurityFilter.java:658)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Unknown Source)
    Caused by: com.crystaldecisions.reports.queryengine.driverImpl.m: JDBC Error: [Microsoft][ODBC Driver Manager] Invalid string or buffer length
        at com.crystaldecisions.reports.queryengine.driverImpl.o.if(Unknown Source)
        at com.crystaldecisions.reports.queryengine.ap.if(Unknown Source)
        at com.crystaldecisions.reports.queryengine.l.bN(Unknown Source)
        at com.crystaldecisions.reports.queryengine.ap.eg(Unknown Source)
        at com.crystaldecisions.reports.queryengine.ap.e(Unknown Source)
        at com.crystaldecisions.reports.queryengine.b2.f(Unknown Source)
        at com.crystaldecisions.reports.queryengine.b2.dy(Unknown Source)
        ... 89 more
    Caused by: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid string or buffer length
        at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbcResultSet.getBigDecimal(Unknown Source)

    A few things to note:
    1) Crystal Report 2013 doe snot install any SDK. Thus the assumption is that you are using CR from teh following link:
    SAP BusinessObjects - SAP Crystal Reports, Version For Eclipse Download
    2) Since you are using a 64 bit connection (Oracle Client 11g 62 bit ODBC driver) you will have to make sure you are using 64 bit JVM. Otherwise, follow Dell's advice and use a 32 bit ODBC datasource.
    3) On one test you are using Oracle Client 10g 32 bit ODBC driver and the other you are using Oracle Client 11g 64 bit ODBC driver. You might want to see if you can run your app using Client 11g 32 bit ODBC driver.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada

  • SQL Server Reporting Services: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

    Hey everyone, So I am trying to get a report onto the server, and in BIDS I kept getting a login screen repeating over and over when I tried to deploy my report, so I tried to upload the file at http://<servername>/Reports This worked, but then trying
    to run this report from http://<servername>/Reports did not work either because "An error has occurred during report processing. (rsProcessingAborted) Cannot create a connection to data source 'FTYDataSource'. (rsErrorOpeningConnection) For more information
    about this error navigate to the report server on the local server machine, or enable remote errors" Anyways I tried to add a New Data Source (which I would use in the report) at http://<servername>/Reports, type ODBC, with the connection string Dsn=blah_blahblah.
    I try to test the connection here and get the error ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified This is really getting old fast, everything I try, a new error comes up. Granted I am new at this,
    but this still should not be this troublesome. Does anyone have any ideas on what could FINALLY allow me to just put a report out onto the server?!? THANK YOU in advance for ANY help.

    Hi,
    Please try setting the credentials of the datasource.
    1. Double click and open the datasource in your project.
    2. Click on the credentials tab, and click on option button 'Use this username and password'
    3. Enter the username and password to connect to the datasource
    4. Deploy or upload the datasource to the report server and try accessing the reports.
    Hope this helps.
    Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.
    BH

  • Linked Server [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

    Hi  I have SQL2012 installed on my local machine and have also installed MySQL 5.6.23 installed with a test database.
    I also have my SQL connector installed and MYSQL ODBC Driver 3.51.   
    Which happily connects to the Mysqldb.
    The Datasource Name : mySQL conn
    TCP/IP Server : localhost and Port :3306
    User root
    with pwd
    On the SQL side I have used the following
    EXEC master.dbo.sp_addlinkedserver
      @server = N'MYSQLSRV',
      @srvproduct=N'mySQL conn',
      @provider=N'MSDASQL',
      @datasrc=N'mySQL conn'
    However when I try to selet using open query
    SELECT * FROM OPENQUERY ( [MYSQLSRV], 'SELECT * FROM students' )
    it comes back with
    OLE DB provider "MSDASQL" for linked server "MYSQLSRV" returned message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified".
    Msg 7303, Level 16, State 1, Line 1
    Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "MYSQLSRV".
    I cant understand what I have done wrong .   Any help in this would be great as Ive hit a bit of a brick wall

    Hi Robert3975,
    In addition to other post, please also note the following things.
    1. If you use the 32-bit driver on a 64-bit machine, please run the 32bit version of "odbcad32.exe" by running "c:\Windows\SysWOW64\odbcad32.exe"
     from Start/Run menu and
    create your ODBC DSN. However, for the 64-bit driver, use c:\windows\system32\odbcad32.exe to create your ODBC DSN. For more details, please review this similar
    thread.
    2. Expand the folder Providers under Linked server directory in SSMS and go to properties of MSDASQL provider and configure it properly as described in this blog:
    Creating Linked server to MYSQL from SQL Server.
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

  • WD Drive Manager Services component error message MyBook Studio Edition II 2TB on iMac

    For five months I have been using a WD MyBook Studio Edition II 2TB in RAID 1 mode on a 27" iMac i7, 2.93 GHz, running Mac OS X 10.6.7, as a Time Machine connected via FW800.  Initial installation and operation was all good.
    Recently, the blue WD logo disappeared from the menu bar. I reinstalled the WD Drive Manager version 2.25 from the installation disk. The logo reappeared, however when selecting Launch WD RAID Manager from the menu an error message appears:
    "The WD Drive Manager Services component could not be found. Make sure the Drive Services component is running first."
    I removed the WD Drive Manager with the installation disk and reinstalled and tried again. No good.
    Tried again, this time using the USB connection with the same result. No joy.
    Tried using the downloadable version (2.25) from the WD website with same results.
    Searching Google lead to no hits on anything remotely related for a solution.
    So, at this point, I cannot confirm that the drive is actually in RAID 1 mode. It shows up in the Finder as a 1TB drive with 268 GB used.
    How can I restore a working version of the WD Drive Manager?
    WD Tech Support has escalated the issue to programmer level but without a successful solution. They suggested I post here as well to see if any other Mac users may have had this problem and have found a solution.
    Thanks for any assistance or referral.

    Unfortunately you probably will not find very many if anyone using WD Drive Manager here, most of us are using a variety of backup strategies that include Time Machine, an on-line backup and a Bootable Clone made with CarbonCloner or SuperDuper.
    The no-worry backup plan | Business Center | Working Mac | Macworld
    Dennis

  • Automation: How to allow java plug-ins to run when the page is invoked via Selenium FF driver?

    My automated test involves navigating to a webpage on a remote system (via Selenium Firefox Driver) which runs a Java Plug-in to launch an embedded Java Applet. When the test first ran, I connected to the remote system (via Remote Desktop) and manually selected "Allow and Remember" as the plug-in was trying to run. However, this only addressed that first instance; it didn't address subsequent instances where I wanted to run the same test, same server (same plug-in).

    Hey I got an awesome tip about this from the #addons channel Archaeopteryx
    You can [http://www.ghacks.net/2013/07/31/manage-your-firefox-click-to-play-whitelist/ Manage your Firefox Click To Play Whitelist].
    Post back with the results :-)

  • Connector access via JNDI?

    I have a project on java.net - https://lucenerar.dev.java.net/ if you're interested - and I have a client class meant to hide all the JNDI and connector plumbing from my application. However, this class needs to look up the connector via JNDI.
    This is all fine and good, but my webapp fails verification in the J2EE 1.4 RI if I have a resource-ref to a Connector factory. According to the developer's guide at http://docs.sun.com/source/819-0079/dgjndi.html I should be able to specify a resource of type javax.resource.cci.ConnectionFactory - which I do! - but this is the only cause of failure I can find.
    Note that I don't have a sun-web.xml yet, so it may be that it's trying to resolve the local name to a global name, and failing at that point. If that's the case, it's an error on my part as deployer, which I'll be glad to address - but I'd really rather know if that's actually the cause of my error, because that SHOULD be something I can configure at deploy-time rather than build time, IMO (as the connection factory's name is configured at deploy-time rather than build-time.)
    Does anyone see anything obvious that I'm doing incorrectly?

    [#|2005-01-20T19:59:00.836-0500|INFO|sun-appserver-pe8.1|javax.enterprise.system.tools.verifier|_ThreadID=24;|INFO: Look in file "/var/tmp//main-site.war20050120075858.txt" for detailed results.|#]
    [#|2005-01-20T19:59:03.214-0500|INFO|sun-appserver-pe8.1|javax.enterprise.system.tools.deployment|_ThreadID=25;|Total Deployment Time: 30206 msec, Total EJB Compiler Module Time: 0 msec, Portion spent EJB Compiling: 0%|#]
    [#|2005-01-20T19:59:03.257-0500|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.tools.deployment|_ThreadID=25;|Exception occured in J2EEC Phase
    com.sun.enterprise.deployment.backend.IASDeploymentException: Some verifier tests failed for the given application. Aborting deployment. Please verify your application using the verifier separately for more details
         at com.sun.enterprise.deployment.backend.ModuleDeployer.runVerifier(ModuleDeployer.java:871)
         at com.sun.enterprise.deployment.backend.WebModuleDeployer.preRedeploy(WebModuleDeployer.java:260)
         at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:160)
         at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:146)
         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:188)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:520)
         at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:143)
         at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:171)Looking at the text file yields:
          FAILED TESTS :
          Test Name : tests.web.WebResourceType
          Test Assertion : The resource-type element specifies the Java class type of the data source. Please refer to Java Servlet 2.4 Specification Section #SRV.13.4 for further information.
          Test Description : For [ main-site.war ]
    Error: The resource-type [ javax.resource.cci.ConnectionFactory ] element does not specify a valid Java class type for the data source within Web application [ main-site ].This is the failure that prevents deployment, that I'm trying to resolve. My suspicion is that my connection factory doesn't implement something it's supposed to, but I don't know where to look to find out what it is. SRC.13.4 sheds little light on it.

  • Accessing JMX via JNDI?

    Hi all,
    I've used JMX just a bit via custom jsps and the HttpAdapter that ships with Coherence. I would like to know how, if at all, to access the MBeans via JNDI. Running in WLS 8.1, I can access the WebLogic MBeans by looking up the MBean server via JNDI or by looking up the WLS-specific MBeanHome via JNDI. Can I do something similar with the Coherence MBeans? In my jsp, I can get the default MBeanServer via the MBeanServerFactory and then look up something like "Coherence:type=Service,*" and go from there. With JNDI, I look up "weblogic.management.server" but can't use it to look up any Coherence MBeans. Is there a different MBean server I should be looking up? Something else completely?
    Also, is there a way to use something more like strong typing? In other words, can I cast an object to something like ServiceMBean and call methods like getRequestTotalCount() on it? I know this works with WLS, but they document the interfaces. I haven't seen anything similar for Coherence.
    thanks
    john

    Hi all,
    I've used JMX just a bit via custom jsps and the HttpAdapter that ships with Coherence. I would like to know how, if at all, to access the MBeans via JNDI. Running in WLS 8.1, I can access the WebLogic MBeans by looking up the MBean server via JNDI or by looking up the WLS-specific MBeanHome via JNDI. Can I do something similar with the Coherence MBeans? In my jsp, I can get the default MBeanServer via the MBeanServerFactory and then look up something like "Coherence:type=Service,*" and go from there. With JNDI, I look up "weblogic.management.server" but can't use it to look up any Coherence MBeans. Is there a different MBean server I should be looking up? Something else completely?
    Also, is there a way to use something more like strong typing? In other words, can I cast an object to something like ServiceMBean and call methods like getRequestTotalCount() on it? I know this works with WLS, but they document the interfaces. I haven't seen anything similar for Coherence.
    thanks
    john

  • Time Machine Bloating & WD Drive Management

    I find that WD Drive Management is incompatible with OS X 10.6. It causes a message to be sent to Console every 10 seconds. These messages bloat the update to TM.
    If this analysis is wrong, please advise!

    nkh wrote:
    The TM bloating is traced to TechTool Protection (5.0.5). I am now considering the wisdom of excluding these files (created anew every 4 hours) from TM backup.
    Ah, yes, you're not the first to be bitten by that one.
    I don't use it, and am not real sure what good it does if you have TM doing hourly backups. But be sure to exclude your TM drive from it.
    If you do want to keep backup copies, you could exclude the file(s) and/or folder(s) from TM, then copy them periodically (say, once or twice a day) somewhere that isn't excluded. You can even automate such things, via Automator, Applescript, and Calendar.

  • Cinema Display hookup via a Thunderbolt drive

    I believe it's possible to run a Cinema Display from my MBP via a Thunderbolt drive, going from the MBp to the TB and then, via a Mini-display to DVI cable, into the display.
    I've hooked it up this way with the display also plugged into its power supply and usb'd into the MBP: nothing
    When I click 'Find displays' I hear activity in the thunderbolt drive (a Lacie 2big) but that's about it. Nothing shows on the Cinema Display.
    I'm doing somethin wrong probably, a familiar scene.
    Anyone done this successfully?
    (I'm running 10.7.3)

    A dvi display with a resolution greater than 1920 x 1200 requires a dual link dvi adapter.  I assume you are using a single link dvi adaper (or cable).

  • Vista X64 Drive Management Snap-In Error with SD Cards

    I have someone with an W700, 2752-3KG, running Vista X64, raid 1 configuration with factory image. The system also has a VM with XPP X86 in case it proves relevant.
    Everything works like a dream, except for one thing which has got us completely stumped. When an SD card is inserted it is recognized as new hardware as expected. There is no autorun, i.e. Open folder / play music window, as this was disabled when the VM was set up. In drive management the SD card will be shown, but alas not assigned a drive letter. Any attempt to assign a drive letter results in the following message; (translated from German to English using translate.google.com)
    "The operation could not be completed because the view
    of the Disk Management snap-ins is not current. Refresh your view with the
    update task. If the problem persists, close the Disk Management snap-in, and
    then restart the Disk Management snap-in or the computer."
    [Original screenshot attached 203KB]
    The usual routine of updating / rolling back of drivers, uninstalling the hardware etc. etc has been tried to no avail.
    The SD cards work fine on other TPs including W700s with Vista X64, X86 and XPP X86, they also work fine on this system when using an USB card reader
    What hasn't been tried is running a recovery to another hdd. As the system is used daily this would mean blowing part of a weekend. And if a weekend is going to be partly blown, then I'd rather blow it completely and reinstall everything from scratch which would be a shame because, as previously stated, everything else is running 110%.
    Has anyone experienced similar? Any ideas? I've searched MS thoroughly without finding anything 
    Thanks in advance
    Edit; Typo
    Message Edited by andyP on 04-20-2009 10:10 PM
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 
    Attachments:
    snapinerror.jpg ‏204 KB

    You may want to try a few different SD cards, there are apparently some which do not play well with Vista.
    Personally I haven't had any issues with a 2GB SanDisk SD card running as ReadyBoost in an X61 under Vista Ultimate x64.
    Cheers,
    Bill
    I don't work for Lenovo

  • Hi transfered my i tunes liberary via a hard drive to my new laptop. It wont let me play anything I've bought from i tunes saying computer is not registered. i have registered it and when i go through the register process it says it is registered?

    Help. transfered my itunes liberary via a hard drive to a new lap top. wasnt easy, cant play any thing I bought on the old computer says this one not registered? The box that comes up has my VERY old email on it, I change this to my current one put in password and it says computer is registered. This then just goes around in circles! Any ideas?

    I found this article some time ago when I was trying to help someone else in this same situation. This is a copy and paste from the website. The website is provided below for you to read before you try this.
    Plug your phone into iTunes
    Click setup as a new device
    Immediately unplug your phone from the computer
    Give it about 30 seconds and iTunes will give a message (I don’t remember the specific, but regarding you unplugging the device and it not completing)
    Plug your phone back in
    Viola! no restore occurred and you can access everything again
    This computer has previously synced with an iPhone or another iOS device.

  • ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified in windows server 2008 r2

    ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified in windows server 2008 r2.I made a application in asp.net c#.I am using ODBC connection.When I deployed my application in windows server2008 r2.There
    is no Microsoft ODBC driver shown in ODBC Data source administrator.Then I go to the C:\Windows\SysWOW64 and open  Odbcad32.exe and add Microsoft ODBC2 driver for Oracle and when I run my application I got following error
    ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
    I am using follwoing string
     <connectionStrings>
    <add name="theconnetion" connectionString="DSN=abdb;UID=abc;PWD=xyz"/>
     </connectionStrings>
    Guide me What I do?

    Did you add a System DSN or a User DSN? If you added a User DSN from your own login, the asp.net application will not be able to use it unless its application Pool in IIS is configured to run under the same credentials that you used for creating
    the DSN. It's better if you add a System DSN.
    Also, be careful to ensure that you are using a 64 bit DSN, unless you configure the application to run in 32 bits. If the 64 bit application attempts to use the 32 bit driver you get the same error message "Data source name not found and no default
    driver specified". See this KB article:
    http://support.microsoft.com/kb/942976/en-us

Maybe you are looking for

  • Install of flash not working

    Hi, I am trying to use BBC i player and a few other websites that require flash, and they all say that flash needs installing, So I go the the adobe site and install flash and the page says installed succesfully. However when returning to sites using

  • Clock icon

    How or why was the time 10:15 decided for the iphone

  • Need to find action behind Forward button in the notificationdetails page

    Hi, When i enable the forward button in the workflow,the forward button apperas on the notification details page. when i click about this page link,the button appears in the list. But when i can take PG.xml code i dont find the forward button. i have

  • Are there benefits to adding crossover cable between two servers for DFS replication and SQL Always On?

    I have two identical servers with 4 network interfaces each. The primary usage for two servers is hosting SQL Server instance with Always On high availability and dfs replication. Two network interfaces from each server will be used to connect to mai

  • Set label colour to files in loop.

    This Script works in part to open a folder select the image to create a text document of the files, at the same time I would like to label them as red. set myFile to (Macintosh HD:Users:Matt:Desktop: SelectedImages.txt") open for access file myFile w