Cant connect jsp with mysqlserver..help needed from person in jsp on linux

hii,
I have installed mysql on linux 7.x.This was installed during installation of linux.From the shell prompt i can go inside mysql and can successfully execute all query statements.
Now have downloaded mm.mysqljdbc driver(i.2c) and installed it,set the classpath in .bash_profile,sh file
Everything ,including Tomcat Apache server is running fine
But i am unable to connect a jsp page to mysql database.
A error message "server configuration denies access to datasource " is coming .
My code is like this
<%
String username-"root"
String password="sdctest"
%>
<% try
class.forname("org.gjt.mm.mysql.Driver");
java.sql.Connectioncon= java.sql.DriverManager.getConnection("jdbc:mysql://localhost/products"username,password);
then opening recordset ....
Error is coming in the second line while establishing connection.
Here i would like to mention that username and password is the username and password of the root user in LInux.
Now i mm confused what username and password will have to be used in JSP.Because i did nt have to specify any username or password while entering mysql.
If my problem is clear,somebody please help...all jobs stuck.

Try doing it without the username and password, otherwise create a new user in MySQL.

Similar Messages

  • Updated to ios6 on my ipod touch 4g when i try to turn it on it doesn't, it just comes up with the itunes symbol and the usb, so i plugged into laptop opened itunes and it says to restore back to ios5 i pressed restore and it cant connect to server? help?

    updated to ios6 on my ipod touch 4g when i try to turn it on it doesn't, it just comes up with the itunes symbol and the usb, so i plugged into laptop opened itunes and it says to restore back to ios5 i pressed restore and it cant connect to server? help?

    Maunally restore it. In order to do this:
    -Download the iOS 5.1.1 firmware from here  http://www.redmondpie.com/download-5.1.1-ios-for-iphone-4s-4-3gs-ipad-ipod-touch -direct-official-links/
    1. After downloading the firmware from the given link, open iTunes and click on your device.
    2. Now press SHIFT on your keyboard and while pressing it click on "Restore".
    3. A dialog box will appear.
    4. Select the firmware you downloaded and click ok.
    5. Done!!! Your iPhone will now be restored to 5.1.1 and if you had backed up your iPod before, then you can put all its settings afterwards.

  • HT1338 Macbook pro two days old...bought logic from app store...logic has installed partly each time i open it up it wants to download rest of programme then stops half way thru and gets error message 'logic is unable to continue with download' help neede

    Macbook pro two days old...bought logic from app store...logic has installed partly each time i open it up it wants to download rest of programme then stops half way thru and gets error message 'logic is unable to continue with download' help needed !

    Hello:
    I would trot back into the Apple store and have them fix the problem (or call Applecare with a warranty issue).  There is no sense in you wasting your time trying to troubleshoot things on a new computer.
    Barry

  • URGENT-CREATE A HTML FILE WITH AN STRING INPUT FROM THE RUNNING JSP

    I am designing a web page where the user enters a page after entering his/her login and password.The User should now be provided with a display page containing the servers that he has permissions for access.The servers that he has permissions are maintained in a database(a normal text file in UNIX).
    Till now the program has been complete for displaying the servers that are available to him.
    I need to create a HTML form containing these servers names in a check box so that when the user clicks thcheck box against the server name it should go to the server and get the password for the required server.
    THe intention from me is to create a HTML file that dynamically takes values from the running JSP means the server names as a string value to its input and then i can continue
    Please guide me in creating a HTML form based on the string output from the running JSP
    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
    DataInputStream in1 = new DataInputStream(fs);
    int fl=0;
    while (in1.available() !=0)
    String str1=in1.readLine();
    StringTokenizer st1 = new StringTokenizer(str1);
    String usernam=st1.nextToken();
    if (usernam.equals(uname))
    String ip=st1.nextToken();
    String host=st1.nextToken();
    fl=1;
    out.println("<tr><td>                                                                                              "+ host + "</td><td> " + ip +"</td></tr>");
    if (fl == 0)
    out.println("YOU HAVE NO SEVRER IN YOUR PROFILE !");
    in1.close();
    The host string here is the server name
    the ip is the ip address of the server
    Need to input these values to another HTML page that contains the check box list of the servers .
    once these are clicked i think i can pass on this to another JSP and retreive passwords
    Please guide me in this

    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
                                    DataInputStream in1 = new DataInputStream(fs);
                                    int fl=0;
                                    while (in1.available() !=0)
                                    String str1=in1.readLine();
                                    StringTokenizer st1 = new StringTokenizer(str1);
                                    String usernam=st1.nextToken();
                                    if (usernam.equals(uname))
                                    String ip=st1.nextToken();
                                    String host=st1.nextToken();
                                    fl=1;
                                    out.println("<tr><td>                                                                                              "+ host + "</td><td>          " + ip +"</td></tr>");
                                    if (fl == 0)
                                    out.println("YOU HAVE NO SERVER IN YOUR PROFILE !");
                                    in1.close();I feel sorry for the inconvenience that is caused as i am new to using these forums.
    I have here used a simple program to retreive the names of the servers that the users have acess to..
    I have here read the servername and server ip stored from a file in UNIX in the running JSP.Now i need to pass these string variables to HTML file and display it in a Check box format.the strings host and ip have to be passed to the input of the HTML file so that they can further be processed once they are clicked using another JSP.
    Can anybody please help me in Passing these strings from the running JSP and display it in a check box format

  • Printer help needed from the Apple community

    Hello Apple Community,
    Can you help me to print from a new Mac to an old Canon printer?
    I'm here in Vietnam (first time in Asia) as a teacher. I have the latest model MBP (running Mac OS X 10.8.4). There's an old Canon that I'm trying to print to. I've Google'd the model number but nothing comes up for Mac. There are sites in the Google search that say they have the software. I'm worried they might be malware sites.
    On the back of the printer it says L11121E. But when I connect it (via USB) and open Print & Scan it detects it as a Canon LBP2900.
    I looked here: http://support.apple.com/kb/HT4670 and here: http://support.apple.com/kb/HT4670.
    But neither of those links list the Canon L11121E or LBP2900.
    When I Google'd "L11121E mac driver" this link came up:
    http://support.apple.com/kb/DL899
    Do you think that would work?
    I checked for updates from the App Store (and System Preferences Print & Scan) with the USB cable of the printer plugged in. Nothing came back.
    I'm a teacher trying to print material for my students. Any help at all would be appreciated.
    Confused,
    .Sean

    Thank you, Linc!
    Following the instructions from AlexeyU (thread: https://discussions.apple.com/message/15765876#15765876) worked!
    AlexeyU's instructions:
    "Try this:
    1) Download & Install official drivers for Lion v3.36 – http://support-au.canon.com.au/contents/AU/EN/0100359005.html
    2) Download & Install this package –http://www.uzhva.com/temp/Canon_LBP3000_to_LBP2900_patcher.zip
    3) Reboot
    You probably will need to manually match your printer with LBP 2900 driver from drivers list."

  • Cant connect java with oracle

    i am new to oracle.
    i cant connect java(jdk1.3) to oracle using 'oracle.jdbc.driver.OracleDriver' in Class.forName() and DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","scott","tiger")
    it shows "class not found" error.
    is there any one to suggest or help me?

    Hi,
    you are posting in wrong forum, as this one is for SQLDeveloper-related issues only. You should post java-related issues in this forum:
    SQL Developer
    However, about your exception you have missed to put the oracle jdbc driver in the classpath.
    Download it from here:
    SQL Developer
    and see more info here:
    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/index.html

  • Help needed from the GB experts! I've just installed Native instruments Session Strings PRO!

    Hello, I wasn't paying much attentionI've accidentally installed the VST and RTAS together with the AU format :-( Just wondering if this mistake has just caused me 3 x times the amount of hard disk space! I don't think I'd be using Protools (VST) or any of Steinberg's DAW (RTAS) anytime soon, I'm still new to all this different types of plugins, could someone tell me if I should leave these formats (VST and RTAS) in my hard drive?
    Thank you for reading

    lyndonfromcooks hill wrote:
    Thanks so much for the reply! I did manage to locate the VST and Digidesign folders as per your previous instructions, however both have empty files in them, I then clicked each and "get info" from the menu bar, just to make sure, but both do not have any files, nor taking any hard disk space, which is strange, maybe your correct by saying the samples that was loaded initialy AU (at 30+ gig size) are only referenced for use by the other two formats when needed...anyways I'm only using the Kontakt Player for this library so NI doesn't provide any support for any related issues, all good
    You're welcome!
    A few thoughts:
    First, make sure you check your plugin folders in both your hard drive library and home library. Perhaps it's in the other one (hard disk > library > plug-ins > etc. AND user name > library > plug-ins > etc.)
    However, because installing libraries in different formats isn't unheard of, I would guess that it doesn't install the big honking sound files more than once, for the very thing you're concerned about. Just a guess though. 
    As for NI... yeah... they're not exactly known for good tech support!
    lyndonfromcooks hill wrote:
    Matt, just on the side note I'm a long time lurker from this forum and I've read and learned a lot from your postings, glad to say with your help, I'd leave this topic solved for now.
    Thank you once again.
    Thanks for the kind words!
    (Finally, if after checking all the plug in folders, you still had questions about this, you could always post in the Logic forum since I know some of those people use both Logic and ProTools. I only use / and have installed AU's so haven't dealt with this one myself. I'm just kind of educated-guessing this!).

  • I cant connect database with dev2000

    i use identif user : scott
    passwd : tiger
    string connection : nothing (empty)
    i cant connect
    error : no module interface connected.
    pls help me
    give me user/passwd and string connection

    Go to SQLNET Easy Configuration and either alter or add database
    alias. Also take the tnsnames.ora file on your server and copy
    it to your oraclehome\network\admin\ folder. Give feedback if
    this helps

  • Help need to know about JSP-RMI connection

    Hi All...
    Can anyone send me any tutorial/link about JSP-RMI connection. I need to access a RMI server object from JSP page.Is it possible?
    Looking for your responds.....

    Hi ...
    I didn't get any reply from any one....
    Is it possible to make Java Server Pages and RMI work
    together -sure, jsp's can make requests to servlets which can then talk to remote objects, then a response can be sent back down to the jsp
    to invoke a method on a server object from a JSP? And
    if, does
    someone know of a good tutorial, article etc., on
    this matter?hmm, Google, JSP Tutorial, RMI Tutorial, etc.

  • Pls Help! Cant connect to LDAP Microsoft AD Server from Unix, error

    Hello,
    Does anybody encounter error configuring BOE X2 - CE10 - from Solaris to connect  Microsoft AD LDAP.  The error message is below.  I confirmed credentials are correct as we used the same params to connect using WebSphere and Windows. It always prompt error
    "secLdap plugin failed "
    [Thu Aug  7 09:34:40 2008]      15613   37      trace message: CInfoStore::Commit SI_info_abuse details: OCA_Abuse exception 1
    0505 at [exceptionmapper.cpp : 77]  49412 {,
    , secLDAP}
            ...The secLdap plugin failed to verify the server administration credentials. Plugin error: SecLdap Error: invalid par
    ameters in ExtractParasFromParasSeq().
    Thanks,
    Roberto

    Roberto,
    BO XI R2 actually does not require ADAM.See this thread: [Windows AD configuration with Linux;.
    The short answer is that the secLDAP plugin can connect directly to AD. This probably has a certain patch level requirement (you'll have to verify this with Tech Support).
    How are you specifying your LDAP Server Administration Credentials ? i.e. what format? I presume you're using the CN=Business Objects User,CN=Users,DC=xxx,DC=net format.
    I get the error you have if I specify the credentials as DomainUser (xxxxBoUser).
    I have been trying to configure AD with Linux (RHEL) using the the secLDAP plugin (thus far, unsuccessfully).Please note that I am however on XI3.0. Also note that I still do not have this working (I get a different error).
    In any case. it would probably be best to open a ticket with BO regarding this.
    Srinivas

  • HT4929 help needed - from mobileme to icloud with pc plus smartphone but no i-products

    I don't use an iphone or i anything else but have a mobileme mail account which I want to transfer to icloud - I have a pc which will need the icloud "adaptor" - what do I do next and what will I be able to use with my existing smartphone?

    Firstly, I note that your profile states that you are using OS X 10.5.8, in order to use iCloud on your computer you need OS X 10.7.2 or better.
    Secondly, I have asked for your email address to be edited out. Post your address in an open thread is a sure way to be bombarded by unwanted email, remember it will be here long after you have resolved your problem, for automated detection software to find.
    If you want people to contact you, enable others to see your email address in your profile.
    Finally, are you sure that these additional addresses are aliases and not sub accounts on a family pack, aliases from MobileMe should transfer to an iCloud when you migrate.

  • Trying to reset phone but have message that says cant connect to prepaid I phone need to unlock screen.  Which is the reason why I want to reset to begin with

    I Bought an IPhone 4 several months ago.  I was going to give it to my wife but she doesn't like the keyboard on my IPhone so I stuck in a drawer as a backup.  I had my cousin over and he was playing games on it then we put it away.  He somehow activated the screen lock.   I am trying to open the phone. I tried to do a reset through iTunes.  But keep getting an error message that says. " iTunes can't start your prepaid IPhone you need to unlock the screen".  Which is the reason I am trying to reset the phone to begin with.  I have done other resets but have never encountered this comment before.  
    THanks to anyone who can help me

    Try Recovery Mode > iOS: Unable to update or restore
    Last resort is DFU Mode (Google it)
    Is your iPhone legitimately unlocked or is it Hacked/Jailbroken to use a perpaid SIM

  • Cant connect Wrt54g with SBC! please help

    Ok i just got the at&t internet package in the mail and i already set it up. I got a linksys wrt54g router and it just doesnt want to work. I get to the part where it says connecting to the internet but it just never connects. I went to dslreports.com and it says i actually have pacicific bell - SBC. I used to have sbc adn even then i could never intstall the router. Someone please help me. oh yeah its a motorola modem.

    Try following settings .....
    Please access the setup page of the router by launching an Internet
    Explorer and type on the address bar, 192.168.1.1 and press enter. When
    it prompts for the username and password, leave the username field
    empty and provide password as “admin "" all in lower cases and then
    click on ok.
    On the main setup page select the "Internet Connection Type"
    as "PPPoE”. Then provide the username and password provided by your ISP
    (Internet service provider) for your connection(Example:
    [email protected])- Select the "Keep Alive" option and choose the
    redial period as 30 sec" and then click on the Save Settings button.

  • I cant connect my ipod to the internet from my laptop. my ipod says i have connection but when i try to open i tunes or safari, it then says unable to connect please help !

    ive tried almost everything. Looked up on youtube and still no help. I have tried resting the network setting still wont let me on the internet

    - Do other devices successfully connect using your network?
    - Did the iPod successfully connect to the network before?
    - Does the iPod successfully connect to other networks?
    - Reset the iPod . Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - iOS: Recommended settings for Wi-Fi routers and access points

  • IPod Help needed from serious Apple gurus - iPod Touch 2g 16g stuck in restart loop. Will NOT enter DFU or recovery mode, NOT recognized by iTunes on Windows or Mac

    Ok, so here's the not so sad story. I bought an iPod Touch 2g 16g through Ebay - so forget warranties. Luckily I did not pay much. The description said it was stuck on the apple logo, so I figured it would be an easy put into recovery mode and restore problem.
    Not so much.
    If you plug the iPod in and charge up the battery the LCD will come to life after a while with the apple logo, then it displays the spinning wheel with the apple logo over it. That will last anywhere from 10 - 15 minutes, then the iPod will go blank for a few secs and then start up the cycle all over again.
    As stated, this iPod will NOT enter either DFU or recovery mode and believe me I've tried it several times several different ways with different timings, connected via USB to a Mac, connected to a different Mac running Windows, and connected to just the charger. Nothing. Occasionally the screen might go blank while holding the power and home buttons but nothing else happens and then it starts it's usual cycle again.
    Again, iPod NOT recognized by iTunes on either Mac or Windows side. Since I got off Ebay and seller didn't know much about it, I have no idea if someone tried to jailbreak this or not.
    I will not put much money into this machine. So I guess my question is: does this behavior mean that the motherboard is clearly fried? Are there any software programs that might diagnose what the problem is? Could it be as simple as a fried battery?
    And most importantly, is this iPod simply toast or is there anything anyone can suggest????
    Really any suggestions would be greatly greatly appreciated. Seems a shame to just trash an iPod touch that might need a simple fix...
    If it helps matters, I can tinker with iPods somewhat and have torn down and replaced several iPod touch 1g and 2g glass and digitizers with no problems. I'm somewhat software savvy but the whole jailbreak thing is new territory... and I can't really figure out the command in Windows or Mac terminals to list all connected devices so I have no idea if the computer even knows the iPod is there, even if iTunes doesn't. Guess that's it... ummm, please help???

    Nothing huh? No one's had this problem or this isn't fixable... oh well... if anybody comes up with anything I'll check in occasionally...

Maybe you are looking for

  • Why is my CSS style not applied to my HTMLB page ?

    Hello ! I'm using a css file to define the layout of my htmlb page... but the layout is not applied. When I specify the layout CSS in a common html page the layout is applied but not for an htmlb page. Could someone let me know where I'm wrong ? EG :

  • Problem with a mandatory field

    Hello Experts, Iu2019m trying to make mandatory the u201CNumAtACardu201D field in the u201CA/P invoinceu201D I´m using this code but it doesnu2019t work If @transaction_type = 'A' AND @Object_type = '18' begin if exists (SELECT T0.docnum FROM dbo.OPC

  • Server0 is runnigLogtimein "Starting applications" state after SP18 upgrade

    Hi Experts, We have upgraded  SPS to 18 and Server0  is runnig state from long time . Please suggest . [impl:5]_13##0#0#Info#1#com.sap.tc.cbs.service.CBSFrame#Java###Stopping CBS service on node ...#1#1015550# #1.5 #001E0B7CEE980079000000010000392600

  • Why are the vocals so quiet but you can hear the music?

    Recently noticed how low or quiet sounding the vocals were when listening to music in iTunes on my dell computer...listened to music via youtube and pandora and everything sounds normal as it should...need help????

  • Illustrator 3d pill question

    I'm trying to make this http://jacorre.com/design/3dpill.htm I'm on a Mac and I'm following the instructions exactly. The differences I see so far is that to make this specific graphic I end up with losing my original color I selected and end up with