Configuration for JDBC support in Jakarta-Tomcat-4.0

I have used JSP pages which call packaganame.classname in the useBean directive. This works fine when I have simple programs, but when my class uses JDBC connectivity, this does not work. I get NullPointerException on the browser. I am currently using Jakarta-tomcat4.0 web server.
I have added the following entry in the server.xml file for JDBC
connectivity, but it still does not work ...
" <Realm className="org.apache.catalina.realm.JDBCRealm"
debug="99"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:<DSNName>"
userTable="Parts" userNameCol="<user_name>" userCredCol="<password>"
/>"
Does this support JDBC, if so do I need to do additional configurations
The Database used is Access2000.
Your suggessions would be of great help.

Hi there,
Firstly, check if you have the JDBC driver on the machine that runs Tomcat. You need this to talk to your database.
Secondly, "NullPointerException" can be caused by the connection to the database is not opened yet, make sure your code to open the conn before doing a query to the your database.
Thirdly, from what you stated below it looks like JDBC-ODBC bridge driver instead of pure JDBC driver connectivity.
In conclusion, you should provide more information abt your configuration for us to help you.
$-art

Similar Messages

  • ALE Configurations for JDBC to PROXY scenario

    Can some body tell me what are the ALE configurations that needs to be done in both the systems and also in XI system.

    Hi there
    No need for ALE confihuration unless you are using IDocs in your scenario.
    You need to configure the integration engine in the Proxy system using SXMB_ADM and create an RFC for the Integration server.
    on the JDBC side you'll need the database bridge configured in the communication chanell...
    what is your scenario specific...which system types and versions?
    Nimrod

  • Configuring JDBC connector with my Tomcat server

    I realize this may be a dumb question, but I'm having trouble configuring my JDBC connector with my tomcat server. I'm trying to run a simple servlet that will access mysql database. I am almost certain its throwing an exception on the line:
    Class.forName("com.mysql.JDBC.Driver");
    I have a feeling the tomcat class path isn't finding the connector jar file.
    Any help would be greatly appreciated.
    Brian

    I am almost certain its throwing an exception on the line:
    Class.forName("com.mysql.JDBC.Driver");If it's a ClassNotFound exception or the like, then yes. Post the exception and stack trace if you need confirmation of this.
    I have a feeling the tomcat class path
    isn't finding the connector jar file.That's what I think too. Did you ensure that the MySQL driver JAR file was in the classpath?
    It will need to be in common/lib under Tomcat, or WEB-INF/lib under your application.
    For a more portable application you should use JNDI to obtain database connection resources, in which case you would want the JAR to be under common/lib.

  • JCA / JDBC Configured for non-XA Attempting XA Transaction Commit

    I am attempting to create simple BPEL SOA composites in SOA 11.1.1.5 that use a DbAdapter to execute a stored procedure in an 11g database. The database task being performed only involves a single database and does not require transaction support. I have carefully stepped through the creation of the DataSource and JCA pointing through the DbAdapter to the JDBC DataSource so XA transaction support is disabled, the JCA pool sets the transaction mode to "No transaction" and the JCA pool uses the dataSource value to point to the JNDI name of the JDBC pool rather than the xADataSource value.
    Visually,
    DataSource definition:
    name = jdbc/myserviceDataSource
    driver = oracle.jdbc.xa.client.OracleXADataSource
    url = jdbc:oracle:thin:@mydbhost.myfirm.com:1521:GENERIC
    use XA DataSource = unchecked
    set XA timeout = unchecked
    Keep XA connection until transaction complete = checked
    keep connection after local transaction = checked
    JCA definition:
    name = eis/DB/myserviceDataSource
    dataSourceName = jdbc/myserviceDataSource
    xADataSourceName = (blank)
    platform class name = org.eclipse.persistence.platform.database.Oracle10Platform
    Transaction | Transaction Support: no transaction
    This configuration works on one sandbox server and I got it working in a second sandbox server. However, after deleting the JDBC and JCA pools to go through the process one more time to document the procedure on the second server, I am unable to get the configuration working again. The WebLogic domain appears to be resurrecting portions of an old configuration that still references the JNDI name of the JDBC pool in the xADataSourceName parameter. I have unpacked the DbAdapter.rar archive for the DbAdapter and verified the contents of the ./META-INF/weblogic-ra.xml file don't use the xADataSouceName parameter. The Deployment Plan for the DbAdapter (named DbAdapterPlan.xml in $SOA_HOME/soa/connectors ) also explicitly configures the JCA pool using the dataSourceName value leaving the xADataSourceName value blank.
    However, executing the SOA service using this JCA connection results in this error:
    java.sql.SQLException: Cannot call Connection.commit in distributed transaction.
    Again, I know the theoretical answer to this question is to disable transactions in the JCA and JDBC configurations and don't use the xADataSourceName element of the JCA configuration to point to the JDBC pool. However, after validating those elements and restarting the pools or performing an Update on the DbAdapter deployment, WebLogic seems to still create connections through the JDBC pool with transactions enabled.
    Any suggestions?
    Should I just completely undeploy the DbAdapter and redeploy it from the SOA binary installation directory? These are just lab machines right now so that's obviously not a good long term answer for production use but may help start over with refining a better procedure for doing this.

    You should use a non-xa driver for your data source...
    From the weblogic docs...
    Configure Transaction Options
    When you configure a JDBC data source using the Administration Console, WebLogic Server automatically selects specific transaction options based on the type of JDBC driver:
    For XA drivers, the system automatically selects the Two-Phase Commit protocol for global transaction processing.
    For non-XA drivers, local transactions are supported by definition, and WebLogic Server offers the following options ...
    http://docs.oracle.com/cd/E23943_01/web.1111/e13737/jdbc_datasources.htm#autoId8
    Cheers,
    Vlad

  • Does  window 98 support jakarta-tomcat-4.0.4 server

    Hi,
    I have a window 98 as my platform,i want to load jakarta-tomcat-4.0.4 will window 98 support this server base,basically i want this server to be loaded for working in jsp,ejb and servlet.Can any one help me reagarding this matter.Or what other server will work on windows 98.Thanking you.Where else can i get examples of how to run the jsp,ejb and servlets examples.
    vinay

    Tomcat is written entirely in java, so it can run anywhere you have a JVM! However, it only supports JSP and servlets. For ejbs, you will need another container. Try JBoss... www.jboss.org.

  • JDBC and JAKARTA TOMCAT 4.01

    Hello,
    I've a problem with Jakarta Tomcat 4.01. With that, I can't access to my DB from a jsp page. However that works with Jakarta Tomcat 3.2.1 and from a simple java program.
    I work with Windows 2k and I've installed tomcat 4.01 service.
    I've reboot several time the service.
    thanks for your help.

    I'm new at this, but when I upgraded from Tomcat 3.x to 4.0.1, I had to change my user DSN within the ODBC icon on the Windows Control panel.
    I highlighed the user DSN, hit the configure button and remapped the path to my database.
    Again, I'm new at this game, but I hope this provides some assistance.
    Bruce

  • Is there any support for JDBC

    Hey All,
    I've started working JDBC since few days and already had early hiccups !!!
    I installed Oracle * into my PC and wrote a simple code to connect to the database unfortunately it didn't connect
    Now I am not sure whether there is any support for JDBC in Oracle 8 or not
    I wonder how can I make sure that my Oracle 8 installed supports JDBC or not
    I use Oracle 8 , jdk1.4, and Winxp as my OS
    Messy

    Oracle supports JDBC at least as far back as 8.1.something; the Oracle JDBC driver is built on a private protocol that existed in at least 8.0, so I'd expect all 8x versions to support JDBC, more or less.
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    However, you may want to consider using a newer version of the Oracle database; you can download the latest, and a single-user-for-development-only license is free.
    http://www.oracle.com/technology/software/products/database/oracle10g/index.html

  • JDBC Receiver adapter  configuration for MS SQL

    Hi friends,
    I have configured receiver jdbc adapter for MS SQL database which are as follows:
    jdbc driver : com.microsoft.sqlserver.jdbc.SQLServerDriver
    connection: jdbc:sqlserver://USLABWDB01:1433;DatabaseName=Central_Lab_BIDB
    In communcation channel i am getting following error:
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when attempting to get processing resources: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://USLABWDB01:1433;DatabaseName=Central_Lab_BIDB': UnsupportedClassVersionError: com/microsoft/sqlserver/jdbc/SQLServerDriver (Unsupported major.minor version 49.0)
    Kindly tell me what is the root cause of the issue.
    Renu.

    Hi Renu,
    Try foll. 2 steps:
    1) Add the IP address of the server(USLABWDB01) to the host file of your PI server, as you are connecting using Hostname.
    2)Try the following connection strings:
        jdbc driver : com.microsoft.jdbc.sqlserver.SQLServerDriver
        connection: jdbc:microsoft:sqlserver://USLABWDB01:1433;DatabaseName=Central_Lab_BIDB
       Here, 'microsoft' word is added in connection string.
    Try using this, it should work.
    -Tanaya.

  • Classpath in tomcat.bat for jdbc driver (jsp page)

    Dear Friends,
    I am able to run my java program with Microsoft JDBC driver from console (dos prompt).
    But, when i am trying to run JSP program on browser using, the same driver, it is saying classNotFoundException().
    do i need to set the classpath for Microsoft jdbc driver in my tomcat.bat ?
    Please help me, what changes do i have to do in tomcat.bat to run the microsoft jdbc driver for jsp application.
    If anyone having idea, please share ur valuable ideas.
    thanks in advance.
    yours
    Rajesh
    [email protected]

    If the driver is packed in a jar-file, you can just place the jar in the lib directory of Tomcat. If it's not, you can pack it in a jar and do the same thing:)

  • I am using elements 11. I cannot open editor because configuration error occurs with message "errror 213:11". What happened? What can I do? Thanks a lot for your support.

    I am using elements 11 with Windows7. I cannot open editor because configuration error occurs with message "errror 213:11". What happened? What can I do? Thanks a lot for your support.

    See if this helps:
    Error "License store does not allow writing" | Install log | CS5, CS5.5

  • How To Install and Configure External Drivers for JDBC & JMS Adapters"

    hello ,
    where can i download  this Guide "How To Install and Configure External Drivers for JDBC & JMS Adapters"?
    thanks
    best regards
    pietro greco

    Hi Eleonore Rosenthal, 
    Could you please check the below links:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/33/e6fb40f17af66fe10000000a1550b0/content.htm
    http://help.sap.com/saphelp_sm32/helpdata/en/33/e6fb40f17af66fe10000000a1550b0/frameset.htm
    Regards,
    S.Manu.

  • "This virtual machine is configured for 64-bit guest operating systems. However, 64-bit operation is not possible.  This host does not support Intel VT-x"

    Hi, I have installed vmware 5.5 hypervisor on hp G8 microserver. I have created one vm as windows 2008 R2. I have also install vmware workstation 11 on this vm. In this workstation when I tried to run vmware 5.5 hypervisor I come across "This virtual machine is configured for 64-bit guest operating systems. However, 64-bit operation is not possible.  This host does not support Intel VT-x" this statement. Which shows that the host machine does not support virtualization and for that you need to go in Bios and enable it but in present case as host machine is also a vm and you would not find much detail of Bios when you log into the Bios therefore, I am pretty much stuck here. I don't see any information in relation to this. Now my question is:
    1. Can we run ESXi inside a vm which is already sitting on ESXi?

    I moved the discussion from VMware Workstation to Nested Virtualization which contains several hints on what's possible and what needs to be configured to make things work.
    André

  • Supported Configurations for VDI 3.1

    I have a question about the supported configurations for VDI 3.1.
    We have a small office where we would have only about 12-15 desktops and would be using the VirtualBox virtualization platform with VDI. The standard vbox configuration recommends 4-5 servers depending on whether you have one of the VirtualBox hosts sharing a machine with the primary VDI node or not. The only other supported configuration is a single host configuration where everything resides on one physical host (and thus one big single point of failure).
    My question is can you have a modified version of the single-host configuration for small office environments? For example, I have two X4240 servers with 4x 136GB hard drives each. I know the VDI hosts need to be on three different hosts to satisfy the MySQL clustering configuration. So can I have something like the following on only three boxes?
    [Sun VDI Primary] on a small (Dual Core CPU, 2 or 4GB RAM) X86 server
    [Sun VDI Secondary + Virtual Box desktop services + Storage services] on X4240 (2x Quad Core CPU, 16GB RAM)
    [Sun VDI Secondary + Virtual Box desktop services + Storage services] on X4240 (2x Quad Core CPU, 16GB RAM)
    I'm just trying to design a configuration for a small office environment that uses the fewest servers but at the same time is not one big single point of failure as would be the case with a single host configuration.
    Any suggestions would be welcomed...
    Thanks in advance,
    -Ken

    Just simply load balancing? Or something more?I often encounter potential customers who'd be interested to buy Sun VDI but they shy away from such thoughts because they realise that the VMware ESX license costs they would have to spend money for will be killing them financially. And they don't see VirtualBox as a "good enough" alternative: It's a "toy", it can't do live migration (e.g. with VMware if they wanted that feature one day they could simply license it and "unlock" it), it's not a bare metal hypervisor ....
    So now I could at least counter the point about VirtualBox not being able to do live migrations because now it can do that and there are no additional licenses to pay and no features to unlock. The feature is there from start. So that's good.
    But the other issues remain: it's not "bare metal". It would have been nice to have some sort of true "VirtualBox Server" or "VirtualBox for VDI -- Bare Metal Edition". Sun had such a product in the pipelines: "Sun xVM Server" ... but this product was killed after EA #2. Silly move, IMHO. It would have been wiser to finish this product and then have Sun VDI support it as virtualisation backend as well.
    Talking of which: Any chance that Sun VDI might one day support the various XEN-based products that exist? If I am not mistaken Sun's "xVM" hypervisor in Solaris/OpenSolaris is in principle just another XEN implementation too. And then there is "Oracle VM" .... so in light of the merger with Oracle I'd say it would make sense if Solaris xVM and Oracle VM/Xen were supported as well. I find it odd that XEN-based products which are widely used in certain circles (e.g. Universities) are being omitted but that there is support for Microsoft Hyper-V which is so brand new and still so lacking in the features department that it is hardly used by anyone except by some paid "early adopters" ...

  • Install Jakarta-tomcat for JavaBeam and JSP

    Hi folks,
    I would like to setup Jakarta-tomcat so I can start learning JavaBeam and JSP programming, how do I setup it up, and where can I download Jakarta-tomcat? Do I have to purchase it or is licensing required?
    THank you.

    however, i'm thinking that javabeam's must still be in some early stage of a jsr committee, and the documentation is sparse.

  • Configuring a Solutions Catalog for E-Support

    The Siebel E-Support Administration Guide says the following on page 52:
    Knowledge base articles displayed in Siebel E-Support consist of Siebel Solutions records in your
    company’s Siebel Business Application. To prepare knowledge base articles (that is, Siebel Solutions
    records) for display in Siebel E-Support, you must create Siebel Solutions records, then add them to
    the Siebel E-Support knowledge base catalog, and finally associate them with catalog categories.
    NOTE: In Siebel E-Support, the category for a solution is not exposed in the Web service.
    What designates the E-Support catalog? In other words, if I have an out-of-the-box install of Siebel and am setting up E-Support, what are the steps to either create a catalog for E-Support or change settings on an existing catalog to make it an "E-Support catalog"?

    Hi,
              could you try it with Foreign JMS Server:
              fore more info:
              http://e-docs.bea.com/wls/docs92/jms_admin/advance_config.html#wp1075917
              you can pass the user name and password (required to access the TIBCO resources) in Foreign JMS Connection factory.
              Thanks,
              Qumar Hussain

Maybe you are looking for

  • Can I add more ram than suggested

    I need to get some more ram for my imac that apple say I can expand to 16gb. I currently have the standed 4gb. In the following article from pcworld i noticed the following (especially the bold) All iMacs come standard with 4GB of memory, installed a

  • MEGA 180 Beeps on PC power on

    When I power on the MEGA180 PC mode nothing happens except a repetative beep at 1 second intervals. I've changed the RAM, removed my AGP card & TV card but that hasn't helped. I'll remove everything else tomorrow and reseat it all but was wondering i

  • Assigning of authorization object to authorization group

    I have created an authorization object and I have assigned this to already exsiting authorization group.I would like to assign the authorization object to a new  authorization group.Please confirm how to create an authorizaton group and assigning a a

  • Dreamweaver CC (2014.1) Un-workably slow

    I've uninstalled and I'm now reverted back to CS6 - this works perfectly. I'm on an iMac Mac OSX 10.7.5 Intel Core i7 8Gig RAM Why is CC so slow. (2014 and 2014.1) 1. creating a new doc and trying to type any line of code (code view, or split) is slo

  • How to get names of sub tabs?

    Hi All, Could someone tell me how to get names of all sub tabs? I have Parent Tab T1. T1 has 3 sub tabs T1_1, T1_2 and T1_3. I would like to have T1_1, T1_2 and T1_3 sub tab names in the list. Thanks in advance!! Dip