How to create new JNDI Data source in Tomcat 5.0 server

hi ...
I have created new datasource but its giving an error like
ERROR: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: null
Nested Exception: java.lang.NullPointerException
please can anybody help me out to solve this bug ?
regards
djshivu

This problem is due to your files server.xml and web.xml. Have you modified them???
I ve the same problem, can you compare these files to mine (you can find my files here: http://forum.java.sun.com/thread.jspa?threadID=635640&tstart=0)

Similar Messages

  • How to create 3.x data source in bi 7

    Hi Guys,
                 can anyone tell me<b> how to create 3.x data source(emulated) in bi 7.0 </b>
    pls reply  me this is urgent
    ravi

    Ravi,
    Please do not multiply the same question several times. The answer is given in the other replica:
    how to create 3.x filesystem data source(emulated) in bi 7.0

  • How to create a linked data source with document libraries based on the same template?

    I use SharePoint Foundation 2013, SP Designer and Visual Studio 2013 to my needs. But there are several things which i don't get.
    I have a number of libraries which use the same template. I want to create a linked data source, that would contain them all, and if I add a library based on this template, the library would be added to the data sorce. Is it possible?
    I tried creating linked data souces, but the view that it brings by default is limited(no sorting, etc.). How can it be modified?

    I am planning to do my project on Linux with J2EE,Oracle technologies.You don't need to set up a DSN. Just use a JDBC connect string such as jdbc:oracle:thin:@localhost:1521:xe
    ~Jer

  • JNDI, Data Source and Tomcat

    Hi,
    I am using Tomcat 4.1
    I am using JDBC to connect to to SQL 2000.
    In the past I use JDBC 2.0 standsrd package to connect to it and it was fine.
    Now, for some reason, I need to use DataSource via JNDI.
    Here is my server.xml
    <Resource name="jdbc/SQLNorthwind" scope="Shareable" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/SQLNorthwind">
    <parameter>
    <name>validationQuery</name>
    <value>select * from Products</value>
    </parameter>
    <parameter>
    <name>url</name> <value>jdbc:microsoft:sqlserver://W2KSERVER1:1433;DatabaseName=Northwind</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>george</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>20</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>5000</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>com.microsoft.jdbcx.sqlserver.SQLServerDataSource</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>george</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>2</value>
    </parameter>
    </ResourceParams>
    It was generated by the Tomcat admin tools via the web browser.
    It is my web.xml
    <servlet>
    <servlet-name>JNDIDatabase</servlet-name>
    <display-name>JNDIDatabase</display-name>
    <description>JNDIDatabase</description>
    <servlet-class>com.testing.servlet.jdbc.jndi.JNDIDatabase</servlet-class>
    </servlet>
    Now here is my servlet source code for connection testing
    private Connection conn;
    private Statement stmt;
    private ResultSet rs;
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    try {
    Context ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/SQLNorthwind");
    conn = ds.getConnection("george", "george");
    } catch(NamingException e) {
    this.log("Naming exception in JNDIDatabase init", e);
    e.printStackTrace();
    } catch(SQLException e) {
    this.log("SQL exception in JNDIDatabase init", e);
    e.printStackTrace();
    The problem is no connection is obtained in init(). So what's wrong with my setting/code? Please help me to fix my setting/code.
    Thank you in advance.

    Follow what you said, no more NamingException. Thanks, Dave.
    now I receive another error.....
    2002-10-18 00:34:12 JNDIDatabase: SQL exception in JNDIDatabase init
    java.sql.SQLException: Cannot load JDBC driver class 'com.microsoft.jdbcx.sqlserver.SQLServerDataSource'
         at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:529)
         at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:329)
         at hk.com.scope.servlet.jdbc.jndi.JNDIDatabase.init(JNDIDatabase.java:37)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:924)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2388)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)
    I am sure msutil.jar, mssqlserver.jar and msbase.jar are stored in /WEB-INF/lib directory and using them in standard JDBC is OK!
    This is an extraction from MS JDBC help file.....
    The data source class for the SQL Server driver is:
    com.microsoft.jdbcx.sqlserver.SQLServerDataSource
    For information on SQL Server 2000 Driver for JDBC data sources, see "Connecting Through Data Sources".
    The driver class for the SQL Server driver is:
    com.microsoft.jdbc.sqlserver.SQLServerDriver
    com.microsoft.jdbc.sqlserver.SQLServerDriver is working properly, I am sure.

  • How to create the generic data source for Labour costs report in BI (actual& plan costs)?

    Hello Guru's
    My requirement is to get the total labour costs in BEx analyzer.So i need to create custom DS for that. But i am not sure about the FICO tables which are having the Labour info..
    I'm having the GR10 report from R/3 sidepls look at the document. But i am not sure about the report, how that built,and giude me on the report.
    Please help on this to going forward.

    Hi,
    There are COOM data source which may suits your needs.
    please check data source
    0CO_OM_WBS_6
    0CO_OM_WBS_3
    Base tables are COSP and COSS.
    Check about coom data source, if not suitable then go for custom data source.
    About table cross verify with your source team.
    Thanks

  • HOW TO CREATE SAP BW DATA SOURCES FOR TDS REPORT?

    Hi All,
    How to create generic data source for these fields?
    I have TDS report these names and field.
    Pls anyone guide me..
    PAN NUMBER
    J_1IPANNO
    VENDOR NAME (accont type - k)
    LIFNR
    POSTING DATE
    BUDAT
    WITHHOLDING TAX  BASE
    WT_QSSHH
    WITHHOLDING TAX  AMOUNT
    WT_QBSHH
    NAME OF WITHHOLD TAX TYPE
    WITHT

    Hi ,
    Thanks for giving info.
    How to add different tables in generic data source?
    PAN NUMBER
    J_1IPANNO
    J_1IMOVEND
    VENDOR NAME (accont type - k)
    LIFNR
    J_1IMOVEND
    POSTING DATE
    BUDAT
    RBKP
    WITHHOLDING TAX  BASE
    WT_QSSHH
    WITH_ITEM
    WITHHOLDING TAX  AMOUNT
    WT_QBSHH
    WITH_ITEM
    NAME OF WITHHOLD TAX TYPE
    WITHT
    WITH_ITEM

  • How to create a DSN (Data Source Name) for "Oracle 10g XE" on SUSE 10??

    Hii Friends,
    I am new Linux user.I installed SUSE Linux 10.2. I am planning to do my project on Linux with J2EE,Oracle technologies. I installed Oracle 10g Express Edition. But unfortunately i have no provider name for oracle in the Providers List in SUSE/Gnome Desktop/System/Data Access points/ dsn list. I am unable to understand what actually happened. Should i install any other libraries, or Odbc drivers (I mean aren't they not given by Oracle XE Setup, as in MS Windows XP) ? Any one please help me. I need this immediately.
    Waiting for a reply,
    Mahidhar Chaluvadi
    CS Engg. Student
    Vizag.

    I am planning to do my project on Linux with J2EE,Oracle technologies.You don't need to set up a DSN. Just use a JDBC connect string such as jdbc:oracle:thin:@localhost:1521:xe
    ~Jer

  • Referencing JNDI data source: Tomcat 6 vs WebSphere 6.1

    Hi,
    I've noticed a problem whereby there is a difference in the way I have to specify my JNDI data source depending on the application server I deploy it on.
    In Tomcat my code specifies "java:comp/env/DB_NAME" and this works fine.
    This doesn't work though in WebSphere and I have to remove the "java:comp/env" prefix to get it to work.
    Is there a common solution for this whereby my code/properties can specify the same JNDI value?
    Thanks

    jwenting wrote:
    mycoffee wrote:
    ted_hankey wrote:
    Hi,
    I've noticed a problem whereby there is a difference in the way I have to specify my JNDI data source depending on the application server I deploy it on.
    In Tomcat my code specifies "java:comp/env/DB_NAME" and this works fine.
    This doesn't work though in WebSphere and I have to remove the "java:comp/env" prefix to get it to work.
    Is there a common solution for this whereby my code/properties can specify the same JNDI value?
    ThanksShould not be different
    wrong. There's nothing in any specification stating that jndi resource names should be identical between platforms.
    On weblogic for example it would be jdbc/DB_NAME :)No
    Tomcat, websphere or weblogic are not different in that term
    The differences are about configuration of the servers. If the servers are configured the same, it should be the same. (Check all the config xml files)
    This post is more clear
    http://www.theserverside.com/discussions/thread.tss?thread_id=42158
    I wrote my code like this
    Context intC = new InitialContext();
    Context c = (Context )intC.lookup("java:comp/env");
    DataSource ds = (DataSource)c.lookup("myDataBase");
    con = ds.getConnection();and it works for Tomcat + Websphere (did not try on Weblogic yet but believe it should be OK)

  • How to create JNDI data source name in Tomcat 6.0.18 server?

    Hai,
    How to create JNDI data source name in Tomcat 6.0.18 server?
    Regards,
    MariMuthu.A

    [http://google.com/search?q=jndi+site:tomcat.apache.org+6.0]

  • How we create new data base in oracle 10g express edition

    hello every body.. i student of B tech n new user of oracle so please help me how we creat new data base in oracle 10g express edition

    Hello, Oracle XE can not create more than one instance, the other editions yes, but like other editions XE allows you to create database schemas, schemas logically grouped objects like tables, views, indexes created by a user. By creating an Oracle user is associated with a schema of the same name.
    Using SYS or system accounts for creating user accounts.
    Syntax to create a user:
    create user Your_user
    IDENTIFIED BY password
    default tablespace users;
    grant connect, resources to your_user;
    Edited by: rober584812 on Jun 25, 2010 9:03 PM

  • How to create new .dat file and its contents?

    Hi There
    Can anybody let me know the procedure of how to create new .ctl or .dat file to load data to tables.
    i working on 2day dba chapter 8. it shows me how to creat table and use .dat file to load data. but doesnot giv any clue how new .dat file and its contents can be created. please help.
    thanks in advance.

    Thanks for ur help
    I ve created txt file in notepad and saved it as dat file. tried to load that data thru Enterprise manager. used load data from User files everything went well and job was showing suceeded but dont know why that data is not showing in the table. i ve tried it now for three four times. used right table and pathe but dont know. has anybody got idea why that ll be?
    Thanks

  • Not able to edit the report created on different data source.....

    I have a query regarding Report in OBIEE - reports developed from BI Publisher are specific to data source on which they have been created ??
    i have a sample report that was created on different data source, i have the corresponding RPD also. I changed the data source according to my DB and when i try to update/edit the report,
    on Analytics for adding a new column, it is generating a seperate new Query from QueryBuilder for that additional cloumn rather than adding up the new query with the previous one(existing report query). Is it because of mismatch of data source on which report had been created and on which it is being update ?? if it is the case, where do i need to make changes related to JDBC connection or others ??
    when i try to create a new sample data set and try to update it, it adds up the extra edited things to original query and works perfectly fine. can ny 1 help me for the same ??

    Hi Denis,
    Normally,what we do is once we provide access to webi users group for each user from BO supervisor module, user(s) will able to refresh/edit the existing report from Full client BO.His colleagues have had no problem editing all his reports from their machines but he is not able to edit any report from his machine and BO is getting freeze.
    He also reinstalled BO and cleaned out everything on his Computer and re-built it but the issue is not yet resolved
    Can you please tell me how to resolve this issue
    Kind Regards,
    Srinivas

  • How do I select a data source for my webapp?

    Wel, I'm obviously not looking in the right manual because this ought to be like falling off a log!
    I have developed a web application in JDeveloper 10.1.3 and I'm deploying it (using a WAR file) to an OC4J container in OAS 10.1.3.
    I have created a JDBC data source (JNDI location jdbc/bmra89) to connect to a 9.2.0.7 Oracle database and testing this through the interface is successful. The data source is associated with a new Connection Pool.
    I ensure that a default data-sources.xml file is NOT bundled into my WAR file from JDeveloper (because the database I want to connect to from the OAS is different to the database I want to connect to from the deployed web app) so it should be looking for one it builds itself. In fact, data-sources.xml exists in the j2ee/<webapp_name>/config directory that contains the details of the data source and connection pool I created.
    During deployment of the generated WAR file, I have chosen to Edit the Deployment Plan and in here I have entered the name of the data source (jdbc/bmra89) into the box labelled "defaultDataSource" and the boxes labelled "connectorsPath" and "dataSourcesPath" I've left empty.
    It all deploys OK, but when I try to access a page I get the following error:
    500 Internal Server Error
    JBO-30003: The application pool (model.AppModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1954)
    So, any ideas where I'm going wrong? (I have to admit to being pretty lost with all this!)
    Thanks,
    Andy

    Let's try to do this as easy as I'm capable of explaining.
    Deploy the EAR to the Application server/OC4J standalone that you're trying to configure without modifying or removing any of the files in the EAR or WAR file and using all of the defaults.
    Now start up the Application server control in you choice of web browser, my URL is http://localhost:8888/em.
    After logging into the console select the "Adminstration" Link, and there will be List of Administration Tasks, one of which being the JDBC Resources under, Services.
    After selecting the JDBC Resources "Go to Task" you will see 2 areas, Data Sources and Connection Pools. Somewhere in all of this you should see the jdev-connection-pool-bmra89, jdev-connection-managed-bmra89, and jdev-connection-native-bmra89.
    I normally modify the jdev-connection-pool-xxxxx first to use the correct URL connection. IE- jdbc:oracle:thin:@localhost:1521:bmra89 to jdbc:oracle:thin:@138.51.128.100:1521:bmra89, changing localhost to a specific database IP address.
    Then I'll click the Apply, and then go back and do the same to the jdev-connection-native-bmra89.
    At this point you should be able to test the connections successfully, and get the Web Service to connect.
    I hope I've covered it and that this helps, and you're not being thick. The data sources part of this stuff can be confusing.
    Darren

  • Help with Creating a Oracle Data Source

    Hello:
    I am trying to create a Oracle Data source.
    I was successful in creating a JDBC Conection Pool.
    But I am stumped creating a new datasource that uses the Oracle Connection Pool.
    It asks for a JNDI Name and I have no clue what I should enter in this box.
    Can somebody help me?
    Thanks.
    venki

    Enter whatever name suits you. This is the name you will use when looking up your datasource in the JNDI tree, i.e.
    Context ctx = new InitialContext();
    DataSource oracleDS = (DataSource) ctx.lookup("myJNDIName");

  • Jndi data source references at deployment time

    hi,
    i have been thinking and trying for days now, so any hint is greatly appreciated.
    we have an enterprise java application with adf faces, bc4j and jpa all in one ear which runs on weblogic 10.3. we want several instances of the same application running on the same weblogic server, with different context-root's and database connections. what I don't know how to do is how I could create an application-wide jndi link to a jdbc data source at deployment time - because the data source jndi name is listed in bc4j application modules and persistence.xml - so one global jndi link for the application would be great.
    e.g.
    jndi names of data sources installed in the weblogic server:
    jdbc/customer1
    jdbc/customer2
    deployment1:
    context-path: /app-customer1
    local data source name: java:comp/env/jdbc/customer
    deployment 2:
    context-path: /app-customer2
    local data source name: java:comp/env/jdbc/customer
    so the goal is, at deployment time, to create a link to jdbc/customer1 for the first deployment and jdbc/customer2 for the second deployment using .. ?
    thank you very much,
    matt

    hi Anand,
    thank you for your answer. It is indeed a part of the solution I would need to apply - resource references in web.xml to have the bc4j application modules reference a jndi data source under java:comp/env. The other part to it is that we have an ejb jar in our jee application, built with hibernate and a persistence.xml file (yes we are crazy enough to use both bc4j and jpa in one ear). The jndi name of the data source specified in persistence.xml would not pick up a resource reference specified in web.xml would it - actually i should just try this out. So that's the 2nd part of the solution.
    cheers,
    Matt

Maybe you are looking for

  • Chart Builder with JSF

    Hi guys I have this task: I need to display a chart for certain data. For start I took one of the sample that came with the Chart Builder API, it draws the chart as a JPG image and stores it somewhere. Now I did the following: 1- Create a jspx page u

  • Pushbutton in selection screen

    Hi all   i want to deactivate a pushbutton in selection screen.   please help me...its urgent    rewards assured..

  • Pages losing documents

    Background Long time lurker, first time poster. However, like a doctor, dentist, or lawyer, I suppose many folks don't present questions here unless they are in trouble. I use an iPhone 5 and iPad Mini (1st generation) (both running iOS 8.1), as well

  • Delegated Admin 1.2p1

    After de-installing iDA1.2 and installing iDA1.2p1, I am now getting the following error, when modifying/adding alternate mail addresses to users in my domain: failed: domain part of email address does not match domain name Does anyone have any ideas

  • Accordion panels jumpy

    My first two accordion panels start out okay, but then 3, 4, 5, and 6 are very jumpy when they open. I think it's because they're so text-heavy. Can you suggest a fix? Thanks!