Please, please  -  i need help urgent.

hi,
i have a problem over 3 days and i cant find what is wrong.
i'm using jbuilder and with him evruthing is ok, but when i want to work with tomcat something going not good and i dont know what.
all the time i'm getting this exception:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
     org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
     org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
     org.apache.jsp.main_jsp._jspService(org.apache.jsp.main_jsp:300)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
     sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
     sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
     sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
     sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
     sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
     java.sql.DriverManager.getConnection(Unknown Source)
     java.sql.DriverManager.getConnection(Unknown Source)
     cellcom_1.DBConnection.DBConnection.<init>(DBConnection.java:29)
     org.apache.jsp.main_jsp._jspService(org.apache.jsp.main_jsp:63)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
i checked my database configuration and its seems that it ok(and its run with jbuilder ok).
i need help, please!!!

Pray tell me where in teh server.xml/context.xml will you need to >configure a datasource for a simple bridge-driver program as is >obvious from teh stack trace? gcrashed,
When a datasource is used, the connections are retrieved from the datasource. The datasource maintains a pool of connections which can be configured. Programs can retrieve the connections from the datasource and after usage, they are returned to the datasource. Since it is the server that maintains the datasource, properties like connection info, max number of connections etc have to be configured in the server.xml or context.xml
And here is the relevant documentation in tomcat on how to set up a datasource - http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html
Setting up a datasource in tomcat requires configuring them in server.xml (for global resources) or in context.xml (for a datasource resource local to your web application).
Here is a thread which describes in detail the process of setting it up - http://forum.java.sun.com/thread.jspa?threadID=643344
Now there are several issues setting up a tomcat datasource, especially for first time users. See the forum thread above for one such discussion.
What configuration is required in tomcat when the stack trace so >clearly shows that he is using the sun.jdbc.odbc.JdbcOdbcDriver and >so obviously using a dsn name for his connection??????As I said earlier, you are missing the point. The OP is not trying to create a connection directly from his program. Or by datasource, he does not mean the microsoft user-dsn datasource that I think you are reffering to. Once again, please read the tomcat link above on what a jndi-jdbc datasource means
Please give me the all 10 different issues that would produce the same stack trace.I was infact hoping somebody would ask. Just type the error stack trace in google, this forum or javaranch or theserverside.com and you would find tons of posts on setting up a jndi datasource and the issues people faced therein.
that's the first and easiest suggestion to give. you don't need to give that suggestion here. Its an open forum. Nobody can tell anybody else on what he/she ought to post. If you dont like it, ignore it. But wait, that's an easy answer. And Iam not going to take that stand. I stick to my opinion that asking the OP to read the docs is still the best suggestion in the post. The OP's problems combined with his comments that the db is working fine suggest a serious lack of understanding of the way datasource and connection pooling works with tomcat.
yes, if the problem is absolutely trivial like: how do i set up a connection using DriverManager - yes u can say - go read the docs. i can swear one can find the answers for half (or many more than that) problems posted in any forum in the documentation. but the fact is that many people do a fair amnount of hunting thru the docs and turn to a forum as a last resort. but they always miss something coz it's very natural. If you would search this forum and analyse duffy's or anybody else( who is a regular in this forum) previous posts, you would find that they have a pretty impeccable record of helping people with genuine problems when they know that the poster has taken some pains or effort to get it going by him/her self. They even hand hold people if the concept is a difficult one or if its one they find stiumlating/challenging.
But this 'unable to set up a datsource' thinggy has been asked and answered a thousand times in this forum and many more in several other forums and all the OP had to do was just search. To be fair, the OP may not have been aware of this fact as he is coming up against this the first time, which's why I maintain, read the docs or search the forum is a suggestion that ought to be taken seriously (rather than being thought of as rude or condescending).
If my comments seemed harsh, i apologize.Make that two. Its not my intention either to brow-beat or be harsh. I am just explaining why I took duffy's side, case in point. No offence intended.
cheers,
ram.

Similar Messages

  • How can I delete my old iCloud account cause I forgot my password and my email has been block. Please I need help urgently

    How can I delete my old iCloud account cause I forgot my password and my email has been block. Please I need help urgently

    Contact the Apple account security team for assistance resetting your password: Apple ID: Contacting Apple for help with Apple ID account security.

  • Guys please i need help urgently with face time!!

    Please help me...
    so me and my girlfriend sleep togethernat the phone..  When she is a sleep of course there is no noise but there is alway that " interference" noise..   But  now when i block my phone this noise disappear it seems like it is muted  so i wanna now why does it happen thin and if it is rly muted or nor

    look in the drafts folder?
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • Please i need help very urgent !!! after deleting my exchange account because the company changed the password , I lost 150 200 contacts and i need to get them back very soon ! please help

    Please i need help very urgent !!! after deleting my exchange account because the company changed the password , I lost 150 200 contacts and i need to get them back very soon !  i never backed up on itunes ..please help

    No. The contacts are "owned" by the Exchange server.
    The Exchange server is owned by the company.
    Everything on the Exchange server is owned by the company.
    If you quit or were terminated, and your access to the system has been revoked, then there is nothing you and do at this point. Once you deleted the account from your phone, all of the associated data was deleted.
    NEVER store personal information on company systems.

  • Kindly advice me, I have iphone 5s and I forgot the log-in password (passcode), I tried to open it but my phone give 60 min. to let me try after I fail for first one. I dont sync. with icloud or itunes. Please I NEED YOUR URGENT HELP!!

    Kindly advice me, I have iphone 5s and I forgot the log-in password (passcode), I tried to open it but my phone give 60 min. to let me try after I fail for the first one. I dont sync. with icloud or itunes. Please I NEED YOUR URGENT HELP!! MY IPHONE IS STILL STUCK.

    I can't, look at this image

  • Sound trouble need help urgent please

    Could somebody tell me how i can fix my problem.
    problem: when my curve 8520 is in silence profile en i start typing in a phnoe number i hear nothing,
    but when my phone is in normal profile i hear i beep with every number of the phone number i enter.
    so i want to know how i can stop my bb from making this noise

    My friend it is a fillable form, can i email you the pdf that iam trying to fill out? then would you be able to tell me how to do it please mate?
    I have attached the form, i need to fill in those boxes so that everything is accuratly height + spacing is correct, and to do it fast, thats all im after.
    Date: Sun, 27 Jun 2010 18:31:58 -0600
    From: [email protected]
    To: [email protected]
    Subject: Need Help Urgent Please
    If is a fillable form, just tab to the next field. What we do not understand from you is IF it is a fillable form or not. If it is not, then the 3 options I gave can be used. Placing text is always a problem. You might find it useful to turn on the grid to help in placing your typewriter fields. However, if it is fillable you do not have to create any fields to type in, you just leave the tool as the hand tool and select the predefined fields with the cursor or the tab key and type accordingly. If the field is a checkbox, then you just use the space key to activate it.
    So, are we talking about a fillable form or something that has the appearance of a form, but not fields to fill in. This is what Bernd has been try to find out and you keep suggesting it is fillable as we read what you have said.
    >

  • Need help urgent,my iphone is stuck at connect to itunes screen.when i restore with itunes it shows error -1. please help me

    need help urgent, my iphone is stuck at connect to itunes screen, when i restore it using itunes, it shows error -1...may someone help me plz....

    See:
    iOS: Unable to Update or Restore
    http://support.apple.com/kb/ht1808

  • Plese I need urgent help, my iPhone another was stollen please I need help and I dond have any contact urgent number

    Plese I need help urgent my iPhone  was stollen I dont heve any contact i need to know what to dooo?
    <Personal Information Edited by Host>

    Hello Stormova,
    I can understand your situation, do the following things first.
    1. File a Police Report
    image copyright City of Providence 
    File a report with the police in the city where the phone was stolen. This may or may not directly lead to the recovery of your phone, but having documentation of the theft may help in dealing with cell phone and insurance companies and, if you can get data about the location of your phone, having the police report on file may be necessary for getting the police to help you recover it.
    2. Call Your Cell Phone Company
    Making this the second step in the process. Some cell phone company representatives may be more inclined to take action when you've got a police report, others may act right away without one. Calling your cell phone company to report the theft and have the account tied to the phone suspended or canceled will help ensure that you're not stuck paying for charges incurred by the thief. Try tracking the phone first, though, since cancelled service could make tracking it hard.
    3. If you have Setup iCloud on your iPhone
    Login to https://www.icloud.com/ with the same Apple Id & password that you have configured on your lost iPhone and see if you can find all your Contacts there ( you will only find the contacts on iCloud if you have setup iCloud Account on your iPhone and had taken a backup on iCloud before)
    On the same page you can also track the location of your iPhone if you have Find My iPhone Enabled on your iPhone earlier, and if your iPhone is connected to any Internet connection (Wifi/Cellular) you can see the last location and inform the same to the Cops.
    http://support.apple.com/kb/ht5668

  • If i reset my ipad can i install paye games for free if i sign back into my apple ID. Please i need help because i need to update my games but i need to put in this billing thing and i want to get rid of it so then i cant buy games with my credit card

    If i reset my ipad can i install paye games for free if i sign back into my apple ID. Please i need help because i need to update my games but i need to put in this billing thing and i want to get rid of it so then i cant buy games with my credit card

    Hello,
    As frustrating as it seems, your best to post any frustrations about the iPhone in the  iPhone discussion here:
    https://discussions.apple.com/community/iphone/using_iphone
    As this discussion is for iBook laptops.
    Best of Luck.

  • When i type in my correct password on the login screen and press enter it just goes to a blue screen for a few seconds then goes back to the same login screen again, please i need help?

    When i type in my correct password on the login screen and press enter it just goes to a blue screen for a few seconds then goes back to the same login screen again, please i need help?

    You can take some of the steps here, #4, #5 or even trying a #18
    Step by Step to fix your Mac
    but I suspect your going to first have to create a data recovery drive
    Create a data recovery, undelete boot drive
    to get your data off the machine,
    then do a #20 to eliminate the bad sectors as that's why your getting the "pinwheel" it's getting a delay reading from the drive, right when your trying to log in too, what a bad spot for it to happen.
    Step by Step to fix your Mac

  • My daughter has spitefully changed my password and has refused to tell me. I have so much medical information that I can not lose. Is there anyway to get around this problem. Please I need Help fast.

    My daughter has spitefully changed my password and has refused to tell me. I have so much medical information that I can not lose. Is there anyway to get around this problem. Please I need Help fast.

    Connect the iPod to your syncing computer and restore it via iTunes.  However, if iTunes asks for the unknown passcode you need to place the iPod in recovery mode and then restore the iPod from backup.  For recovey mode see:
    iPhone and iPod touch: Unable to update or restore
    "If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone and iPod touch software."
    Above is from:
    http://support.apple.com/kb/ht1212

  • Please i need help to how to recover my camera roll photos i deleted them yersterday by accident im need with the ipod and i took the pictures with ipod but i want to know how to recover my photos in a easy fast FREE way as soon as porssible pleasse???

    please i need  help to how to recorver my cameral roll photos from my ipod in a easy FREE way as soon as possible

    Restore from backup if they are in a backup. Otherweise I know of no free way. These are paid and no one has said that they worked.
    iPhone Recovery Stick - recover deleted text messages & more
    Recover files from iPod Touch | Restore data iPod | iPod touch undelete, unformat

  • Please I need help in upgrading applications

    Please I need help in upgrading my pdf-notes for ipad. it seemed like somebody hijacked my Apple ID, I had since solve the problem with Apple, I still have my original email address but I was unable to upgrade all applications I bought before my username was hijacked and pdf-notes is one of the applications. kindly advice me on what to do to upgrade.
    Thanks. Jimmy

    Okay Demo.  My theory is that accessing iCloud if apps were backed up to it can be redownload end then updated. I am thinking that with the new apple ID the iCloud account may only recognize the high jacked ID. I don't know if I made it clearer but I can do some digging. I don't like to see people using Apple devices having a tuff time. Not cool.

  • 1.4 bug? or bad code?  please I need help

    FTPClient.getFile(inputStream out,String filename) works fine if inputStream is directed to an output file. I added a Thread to read inputStream using piped i/o and works fine but the thread never ends. Seems like readLine() does not return null. Please I need help.
    note: FTP package located finj.sourceforge.net
    import java.io.*;
    import org.finj.FTPClient;
    public class FTPSimpleDemo extends Object {
    public FTPSimpleDemo ( String server,
    String user,
    char[] password ) throws Exception {
    PipedOutputStream pipeOut = null;
    PipedInputStream pipeIn = null;
    Thread reader = null;
    FTPClient client =
    new FTPClient(server,user,password);
    //download file
    try {
    pipeOut = new PipedOutputStream();
    pipeIn = new PipedInputStream(pipeOut);
    reader = new PipeIn(pipeIn);
    reader.start();
    client.getFile(pipeOut, "J_Event.txt");
    while(reader.isAlive() ||
    !reader.isInterrupted));
    pipeOut.close();
    pipeIn.close();
    client.close();
    }catch(IOException e){e.getMessage();}
    finally {reader=null;}
    public static void main ( String[] args ) throws Exception {
    new FTPSimpleDemo(args[0], args[1],
    args[2].toCharArray());}
    class PipeIn extends Thread {
    private InputStream in;
    private String str;
    public PipeIn(InputStream in) {this.in = in;}
    public void run() {
    try {
    BufferedReader br = new BufferedReader(
    new InputStreamReader(in));
    while ((str=br.readLine()) != null)
    System.out.println(str);
    br.close();
    }catch (IOException e) {
    System.err.println(e.getMessage());}
    }

    Heres a tip: forget that open source library unless you need to customize it or something. Use the ftp library that comes wih the JDK. It is in an unsupported package (sun.net.ftp) check it out it couldn't be simpler:
    //you need this import statement
    import sun.net.ftp.*;
    //here is example code
    String server = "ftp.fileplanet.com";
    String user = "me";
    String passwd = "1234";
    FtpClient client = new FtpClient();
    client.openServer(server);
    client.login(user, passwd);
    client.binary();
    client.cd("games");
    //DO NOT CLOSE THIS INPUTSTREAM UNTIL YOU WANT TO CLOSE YOUR CONNECTION
    TelnetInputStream in = client.get("pacman.exe");
    //now do whatever u want with this inputstream
    byte[] bytes = new byte[4096];
    int x = 0;
    while((x = in.read(bytes)) != -1)
      out.write(bytes, 0, x);
      _totalBytes += x;
    out.flush();
    out.close();Also another tip for you to write code in the forum put your code between the [ code ] [ code ] tags

  • HT5654 please I need help, I have not been able to upgrade my iOS from 6.1.2 to 6.1.3?

    please I need help, I have not been able to upgrade my iOS from 6.1.2 to 6.1.3?

    Hello mpacology
    The article below will provide assistance with upgrade your iPhone operating system. You can do this through iTunes or through the Software Update section in Settings >General > Software Update
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

Maybe you are looking for