No PasswordCredential found

i am building a small web app with netbeans connecting to a remote sql server DB via the sqljdbc.jar. Netbeans can see the tables and works fine until I try to run an app with a component bound to db data.
StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
java.sql.SQLException: Error in allocating a connection. Cause: No PasswordCredential found
at com.sun.gjc.spi.DataSource.getConnection(DataSource.java:100)
I think the problem is that the read only user i am using does not have a password and for some reason the webserver needs it to have one. However, I dont understand why it would need to. Am i wrong about this guess? Could it be something else?
I can bind components to data on a local Java DB.
TCP/IP is enabled on the remote SQL server.
Netbeans 5.5
Sun App Server (latest)
Java2 EE 5_02

Just a stab in the dark, but did you create the required database and tables in MySQL for this app? Also, what's the stacktrace. I'm sure it'll be helpful to look at the exception that occurred

Similar Messages

  • No PasswordCredential found when off network

    Hello,
    I am using Netbean 3.6 with Sun's app server 8 bundled. I also have the Oracle 9 database installed on my laptop. I am trying to do some development on my laptop while not connect to the network. When I am connect, everything works fine. When I disconnect, the app server's connection pool ping works, but my program produces a "Error in allocating a connection. Cause: No PasswordCredential found " error. I have the user and password properities in the connection pool, like I said it works while connect to a network. Anyone have any ideas?
    Thanks
    Mike Brown

    Just a stab in the dark, but did you create the required database and tables in MySQL for this app? Also, what's the stacktrace. I'm sure it'll be helpful to look at the exception that occurred

  • "No PasswordCredential Found" while running bookstore tutorial

    Hi,
    I'm trying to get the J2EE bookstore1 example to work.
    When I go to the page http://localhost:8080/bookstore1/bookstore I have this error message "No PasswordCredential Found"
    I'm using NetbeansIDE 6.5.1 and Glassfish. I only run the example just like in the tutorial.
    I also checked the Resources in glassfish. I have the user and password set up in the "DerbyPool" in the Connection Pool. I also can ping it successfully.
    Can someone give me an idea, what did I do wrong?

    Just a stab in the dark, but did you create the required database and tables in MySQL for this app? Also, what's the stacktrace. I'm sure it'll be helpful to look at the exception that occurred

  • Admin Console property

    Hello ever body,
    I want to ask about add new property in Admin Cosole.
    I have this connection infromation:
    My connection is
    url = "jdbc:mysql://localhost:3306/";
    dbName = "moodle";
    driver = "com.mysql.jdbc.Driver";
    userName = "root";
    password = "";
    when i connect to DB the connection established successfully but when drap table from DB to table in JSF page and run this error appear Error in allocating a connection. Cause: No PasswordCredential found
    I found solution for this is to add new property password then enter the password value the problem is i havn't password (empty) and my connection account must the password be empty .
    So when i add the property and leave it without value the admin cosole make error and i don't know how i can add this property without value.
    I need solution for that ASAP.
    Can any one help me please.

    ':' has a special meaning (that of delimiting properties in a list) in asadmin. That needs to be escaped if we don't want that special meaning.
    Can you try:
    create-jms-resource port 4849 host myhost.com password password user admin resourcetype javax.jms.QueueConnectionFactory property "AddressList=mq\://myhost\:7689/ :UserName=admin:Password=admin ...
    Note that the property is quoted.

  • Java.sql.SQLException: Error in allocating a connection. Cause: No Password

    I'm deploying an EJB Module with a CMP in SJAS from SJSE.
    I get the following exception "java.sql.SQLException: Error in allocating a connection. Cause: No PasswordCredential found" the first time a CMP tries to connect to the MS SQL Server database.
    I can connect through the Admin console (PING works fine) but this error hapens in runtime.
    The datasource classname i'm using is "com.sun.sql.jdbcx.sqlserver.SQLServerDataSource" which is suggested by the SJSE.
    Any help will be welcome...
    Nelson Marques

    If you are using Netbeans, then this link might help:
    http://forum.java.sun.com/thread.jspa?forumID=136&threadID=598423
    Otherwise, have you try this ?
    Verify your sun-ejb-jar.xml does not use default-resource-princinpal element:
    <res-ref-name>jdbc/pdisasdb</res-ref-name>
    <jndi-name>jdbc/pdisasdb</jndi-name>
    <default-resource-principal>
    <name>myname</name>
    <password>geheim</password>
    </default-resource-principal>
    </resource-ref>

  • SQL Insert Error Error in allocating a connection. Cause: No PasswordCreden

    Friends,
    While testing my connection in the Sun java Application Server , I get the following error .
    "SQL Insert Error Error in allocating a connection. Cause: No PasswordCredential found "
    Can somebody please guide ?
    regards
    Dhiraj

    If you are using Netbeans, then this link might help:
    http://forum.java.sun.com/thread.jspa?forumID=136&threadID=598423
    Otherwise, have you try this ?
    Verify your sun-ejb-jar.xml does not use default-resource-princinpal element:
    <res-ref-name>jdbc/pdisasdb</res-ref-name>
    <jndi-name>jdbc/pdisasdb</jndi-name>
    <default-resource-principal>
    <name>myname</name>
    <password>geheim</password>
    </default-resource-principal>
    </resource-ref>

  • Sun Java Systems Application Server 9 connection-pool ping error

    Hi folks, I tried creating a javax.sql.DataSource MSSQL database connection pool with the jdts type 4 driver I got from sourceforge, and each ping operation I tried gave me the following error message:
    Operation 'pingConnectionPool' failed in 'resources' Config MBean.
    Target exception message: No PasswordCredential found.
    My connection properties are:
    user = sa
    port = 1433
    databaseName = FlyMyWayDB
    serverName = digitanx-chalu
    What does this exception mean, what are the possible causes, and how do I go about resolving it.
    I will really appreciate any help, thanks.

    As long as the JDBC Driver (jar file) for the connection pool(s) you want to create are in the app server's lib directory, you shouldn't have a problem creating both those and the JDBC Resources from the admin console (web app). So far, I am able to bundle my connection pools and resource connections inside my ejb module under "Server Resources" within my enterprise (.ear) application in Netbeans 5.5. When I deploy it, the whole thing works pretty sweet. I haven't gotten to the stage where I will want to migrate the jee application to my dedicated server yet, but I suspect that if my dedicated (remote) app server doesn't want to play nice with my netbeans when I try and set it up as a new server under my "Server Manager", then I'll likely try to simply deploy the .ear file from within the admin console, using the "browse" (for .ear) option (likely the better/preferred practice for production anyhow). Thanks for the dukes! My very first ones ever!

  • Unable to create connection pool on admin console!

    Hello, i try via application server's admin console connect to my mysql database.
    The jdbc.mysql.Driver is already in as_home/lib directory.
    My database has no password and the root is authorized and has full access.
    My Configuration on admin console look like:
    Datasource Classname: Datasource Classname:
    Resource Type: javay.sql.DataSource
    use:root
    url:jdbc:mysql://localhost:3306/mydatabase
    When i ping the database i becom thes error:
    Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: No PasswordCredential found
    Please help
    Thanks

    hmm this looks like the password was not supplied. are you sure there is not password to access the db?
    this is an e.g of my connection pool connection.. its for ibm db2 though. so you might change it where appropriate.
    Datasource classname : COM.ibm.db2.jdbc.DB2DataSource
    Resource type: javax.sql.DataSource
    PortNumber: 50000
    DatabaseName: (the db name)
    Password: (password)
    User: (username)Clarence Loh

  • Error in establishing connection from Sun Java Sys APp Server to databse

    HI there !!
    i m using Sun Java System Application Serever P.E 9.1 for my java ee application and the databse base is SQL Server 2000 desktop edition.
    Now i m getting the following error when i try to get a connection .
    RAR7099: The mcf being used to allocate the connection and the MCF in the pool are not equal.
    RAR5038:Unexpected exception while creating resource
    RAR5117 : Failed to obtain/create connection. Reason : No PasswordCredential found
    RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: No PasswordCredential found]
    Error in allocating a connection. Cause: No PasswordCredential found
    StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
    i found something related to this thing at :
    http://docs.sun.com/app/docs/doc/819-3678/6n5sopvvi?q=TBD&a=view
    but was unable to handle that ...
    any help regarding this will be highly appreciated !!!
    i m using the code provided at NetBeans Tutorial for web aplications at
    http://www.netbeans.org/kb/55/mysql-webapp.html

    Why are you resurrecting an over 1 year old thread with such a nonsensicial reply? Please don't do that. Just respond to active topics in the listing.

  • Sybase connectivity

    Hi all,
    I have some troubles with the deployment process of the jdbc datasource.
    I used an evaluation version of the DataDirect JDBC drivers to connect a Sybase database. Following the process stated on the tutorials I configured a new Server Type and a new DataSource. All was working fine: the connection was alive, the tables and columns were showing up and I was able to bind a result set to an object on a jsp page.
    When I deployed the first time the simple application I got a runtime exception saying "Error in allocationg a connection. Cause:null".
    Lookin deeper in the application server definitions through the admin tool, I discovered that the JDBC Connection Pool definition, deployed by the Sun Java Studio Creator, had something wrong. The ping button said "An error has occurred. Operation 'pingConnectionPool' failed in 'resources' Config Mbean".
    On the page "Edit Connection Pool" the entry "Data Source Class Name" was filled with the Driver class name (com.ddtek.jdbc.sybase.SybaseDriver instead of com.ddtek.jdbcx.sybase.SybaseDataSource). I can understand this because during the definition of the datasource nobody asked me the data source class name and I suppose that the deployment program can't guess by itself the correct class name.
    Using the admin tool I changed the entries on the Edit Connection Pool page to the correct class name, adding the properties serverName and portNumber too. With these definitions I got a successful ping.
    Unfortunately I did'nt reach the target because the application is still not working. The exception handler shows the following message: "java.sql.SQLException: Error in allocating a connection. Cause: No PasswordCredential found".
    Can anybody help me?

    Looks like you might be using blank password to connect to your Sybase database. Creator IDE data sourcesare configured as connection pools when deploying to the bundled AppServer. We have a known issue that the AppServer fails to connect to connection pools with blank passwords. Try with non-blank password and confirm if it works.

  • Heap Problem with weblogic.security.auth.login.PasswordCredential

    Hello,
    I am calling EJB's from a Tomcat 6.0.20. The EJB's are contained on a Weblogic 10 mp2. For getting EJBHome, I'm using the following InitialContext-Call:
    EJBHome home = null;
    try
    Properties initialContextProperties = new Properties();
    initialContextProps.put(InitialContext.INITIAL_CONTEXT_FACTORY, initialContextFactory);
    initialContextProps.put(InitialContext.SECURITY_PRINCIPAL, username);
    initialContextProps.put(InitialContext.SECURITY_CREDENTIALS, password);
    initialContextProps.put(InitialContext.PROVIDER_URL, url);
    initialContext = new InitialContext(initialContextProps);
    Object objref = this.initialContext.lookup(jndiHomeName);
    home = (EJBHome) PortableRemoteObject.narrow(objref, narrowClass);
    finally
    if ( initialContext != null )
    try
    initialContext.close();
    catch(Throwable t)
    return home;
    The Problem is, that after a bulk test on the tomcat (Xmx=256MB), 200MB are filled with 1.500.000 instances of the following class:
    weblogic.security.auth.login.PasswordCredential
    Has somebody an idea how to remove these classes from tomcat heap, because now the result is an OutOfMemory?
    Best regards,
    sebbay

    Hi,
    The authenticate method would take the user and the password details from the environment
    (env) that is passed and after successful authentication would populate the subject with
    the principals (i.e user, group the user belongs to ..)
    It should work with any user that is defined in the WLS not just weblogic/weblogic.
    Do you have any other users defined and which group do they belong to?
    Vimala
    Khalid Rizvi wrote:
    I am playing (learning) with weblogic.security.auth.login.UsernamePasswordLoginModule
    as a LoginModule using JAAS based authentication. Surprisingly, the only userid
    and password combination acceptable is uid=weblogic, pw=weblogic combination.
    I went through and looked at the example code under
    http://e-docs.bea.com/wls/docs70/security/cli_apps.html#1042212. I found that
    the UsernamePasswordLoginModule.login calls into
    if (url != null) {
    Environment env = new Environment();
    env.setProviderUrl(url);
    env.setSecurityPrincipal(username);
    env.setSecurityCredentials(password);
    try {
    Authenticate.authenticate(env, subject);
    Seems like UsernamePasswordLoginModule only is a router, as it instantiates an
    instance of Environemt using the userid and password and passes this Environemtn
    instance (env) to Authenticate.authenticate along with the empty Subject instance.
    I read about that the Subject instance will be filled in with Principals by the
    WL Server.
    My question is that firstly,
    1. As Authenticate.authenticate is not passed in the uid and pw, will it pick
    those from the env?
    2. Secondly, why does it only accept uid=weblogic & pw=weblogic.
    I will appreciate if some one can put me in the right direction.
    Khalid R. Rizvi
    508-641-1192
    [email protected]

  • Item cost not found for one or more items - Inventory Posting

    Good Day Mentors,
    My user has encountered an error during Inventory Posting and its "Item cost not found for one or more items".
    The specific Message ID from SAP's System Message Log is 10001287.
    I found a similar post which addresses this error here.
    But unfortunately it did not help me solve my user's problem.
    I already checked if the items had a defined "Item Cost" in the Item Master Data Inventory Tab, and they all have "Item Cost" defined.
    I'm not sure if this will help, but below is the Inventory Audit Report of one of the items that is throwing the "Item cost not found" error.
    I am not a business consultant neither am I literate in accounting, so thanks for the patience.
    SAP Version: 9.0 PL5
    Valuation Method: Moving Average
    Thanks in advance!
    Sean

    Hi Augusto and Raviraj,
    I've already verified in our production database the points you made:
    - Is the "Manage Item cost per warehouse" selected in the Basic Initialization Screen?
    YES
    - Is the "Manage Inventory by Warehouse" ticked/checked in the "Inventory Data" tab of the "Item Master Data" screen?
    YES
    * I apologize for not have been able to give this information upfront.
    Anyway, the database only has one warehouse at the moment.
    I've checked the items, like the item in the screen shot above, and it does have an item cost.
    Below is the screenshot of the sample item from my original post,
    Thanks in advance!
    Sean

  • Malicious or not? Message popped up: Mozilla security found (something like too much, forget exact word) activity on your computer so it will do a fast scan of system file. With OK button.

    I was looking at youtube.com, which always tells me my browser is not supported and recommends I download Firefox, but that is what I was using, so I went to Firefox to check for updates. (I think I also had freecycle.org open.) Then this message popped up in a new page: Mozilla security found (something like "too much", forget exact word) activity on your computer so it will do a fast scan of system file. There was an OK button. The page address was: http://update17.stegner.ce.ms/index.php?Q7Lhl9ShbRxGJXpkM1VLSi4ZE8H4pTedoVPySgeppM3VpC+thEspcFG7qxHgn1pdsC2h5ygPGWI3t5hXqMzL9EQaZZ3J1e3CKXgCb0Qp. I did not click OK but copied the link and closed the window which closed the internet. I have never seen this before and would like to know if it is really Mozilla or possibly something malicious. Thank you.

    Good catch. That almost certainly is an invitation to download malware.
    There are a lot of infected web sites pushing "fake antivirus" software. If you have any doubts about whether your system might have become infected, you can supplement your regular security software with these two highly regarded scanners:
    Malwarebytes Anti-malware : http://www.malwarebytes.org/mbam.php
    SUPERAntiSpyware : http://www.superantispyware.com/

  • Songs that I have purchased are missing in iTunes (file not found/exclmation point), and do not show up in the iTunes Store for download.

    I have a laptop that has (or had) pretty much all of my music, both burned from CDs and downloaded from iTunes. My 17 year old son on occasion syncs his iPhone and iPad with this laptop. As of the last sync (as best I can determine), many songs that I purchased in the past few years are now missing, in that they have an exclamation point to the left of the song title, and when I try to play the song, I get an error message that says "The song could not be used because the original file could not be found" or something to that effect. As it turns out, the file seems to be erased. This has happened multiple times, and I could be wrong, but I believe that there are some songs that had the exclmation point last time he synced that now don't, and vice-versa. There is not an obvious correlation or grouping as to why these songs are missing (e.g,. they were not all purchased on the same date, not all songs from one artist are missing, etc.).
    Since most of these songs have been purchased through iTunes through my account, my reaction was to go to the iTunes store, log in with my account, and re-download them. Problem is, all of these songs instead ask me to purchase the song, instead of displaying a "cloud" logo. Therefore, it appears that I have to re-purchase these songs, which does not sound correct.
    Questions: Does anyone know, most importantly (to get an immediate fix):
    1. How can I re-download these songs and why doesn't iTunes Store recognize that I have already purchased them?
    and perhaps as important (more of a long-term question):
    2. Why does this happen and how can I prevent this from happening again (since it has happened multiple times)?
    Thanks.

    1. iTunes won't offer cloud downloads for songs that it "thinks" are in your library, even if it "knows" the files are missing. If you've exhaustively searched for the missing files and there is no prospect of repair by restoring to them to their original locations, or connecting to new ones, then delete that tracks that display both the missing exclamation mark and are of media kind Purchased/Protected AAC audio file. Don't hide from iTunes in the cloud when asked, close iTunes, then reopen. You can download from the cloud links or iTunes Store > Quicklinks > Purchased > Music > Not on this computer > All songs > Download all.
    2. Why? Not sure, perhaps 3rd party tools or accidental key presses combined with previously hidden warning messages when trying to organize the library. There is a hint that using the feature to downsample media as it is synced to a device may also be involved, though I've not replicated it. Whatever the reason a backup would protect your media.
    tt2

  • I've just found that three movies I've bought from iTunes on on my iPad are not showing up on Apple TV or anywhere other than that iPad.  What's up with that and will I lose these films if I reset this iPad?

    I've just found that three movies I've bought from iTunes on on my iPad are not showing up on Apple TV or anywhere other than that iPad.  What's up with that and will I lose these films if I reset this iPad?

    Thanks.  The reason this has become an issue is that I recently bought a new Macbook Air that the iPad is not synced to.  The one is was synced to was stolen.  If I want to sync this iPad to the new Air, won't it be wiped before I'm able to copy these films or am I wrong about that?

Maybe you are looking for