Exception is thrown "mydb is not bound"(needs urgent help)

We r three students and our final project is a BPM(Business peocess Management)system.
BPM is actually a workflow system(managing the business processes)and all the rules and constraints are applied from the Rule Management System.
we have started the implementation, and therefore we need some help related to the implementation.
We r using EJB2.0 with JBuilder9, JBoss3.2 as the application server and tomcate as the web server.
problem:
I want to create manual database connection using DataSource,
I am using mysql and database name is mydb.
I have done all the reqiured configration of mysql with Joss and it is working.
After getting the initial context, when i try to lookup the datasource, exception is thrown "mydb is not bound"
Initial context is correct because i have tried entity beans asd it works well.
code is
Hashtable contextValues = new Hashtable();
contextValues.put(Context.PROVIDER_URL, "jnp://loopback:1099");
contextValues.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
Context context = new InitialContext(contextValues);
context.lookup("java://mydb");
Kindly help me if u find time,
regards!

try java:comp/env/jdbc/mydb or java:comp/env/mydb

Similar Messages

  • "Errored while looking up datasource: PWC4216: Name myDB is not bound in th

    hi all,
    am trying to deploy my web application (.war which has a servlet which connects to a db and fetches records and displays in jsp) file in SunOne web server V7 but i cant get past this error :
    [29/Jun/2010:15:14:46] failure (24218): for host 146.171.59.144 trying to POST /BbaMigrationQueryTool/BBAMigrationQuery, service-j2ee reports: NamingExcep
    tion caught: Errored while looking up datasource: PWC4216: Name myDB is not bound in this Context
    my java code to lookup the jndi name :
       1.     //looks up a datasource 
       2.     private static synchronized DataSource getDataSource(String jndiName) throws NamingException { 
       3.  
       4.         DataSource dataSource = null; 
       5.  
       6.         try { 
       7.             Context c = new InitialContext(); 
       8.              Context envContext = (Context) c.lookup("java:comp/env"); 
       9.             Logger.getLogger(DBUtilities.class.getName()).log(Level.INFO, "Found sub context"); 
      10.               dataSource = (DataSource) envContext.lookup(jndiName); 
      11.  
      12.         } catch (NamingException e) { 
      13.             e.printStackTrace(); 
      14.             throw new NamingException("Errored while looking up datasource: " + e.getMessage()); 
      15.         } 
      16.  
      17.         return dataSource; 
      18.     } 
      i call the above method with "jdbc/myDB" and have created a JDBC recourse within the SunOne web server via the admin console.
    my web.xml i have an entry for the resource as follows :
       1.             <resource-ref> 
       2.         <res-ref-name>jdbc/myDB</res-ref-name> 
       3.         <res-type>javax.sql.DataSource</res-type> 
       4.         <res-auth>Container</res-auth> 
       5.         <res-sharing-scope>Shareable</res-sharing-scope> 
       6.     </resource-ref> 
    in my sun-web.xml i have an entry as follows :
       1.     <resource-ref> 
       2.         <res-ref-name>jdbc/myDB</res-ref-name> 
       3.         <jndi-name>jdbc/myDB</jndi-name> 
       4.     </resource-ref> 
    server.xml has this entry in it :
       1.   <jdbc-resource> 
       2.     <jndi-name>jdbc/myDB</jndi-name> 
       3.     <datasource-class>oracle.jdbc.pool.OracleDataSource</datasource-class> 
       4.     <property> 
       5.       <name>password</name> 
       6.       <value>76765</value> 
       7.     </property> 
       8.     <property> 
       9.       <name>user</name> 
      10.       <value>56756</value> 
      11.     </property> 
      12.     <property> 
      13.       <name>url</name> 
      14.       <value>jdbc:oracle:thin:@serveretc etc</value> 
      15.     </property> 
      16.     <description/> 
      17.   </jdbc-resource>
      what could be wrong ??
    thanks in advance.
    Edited by: cesarNZ on Jun 29, 2010 7:58 PM
    Edited by: cesarNZ on Jun 29, 2010 8:00 PM

    try to not split the attributes in server.xml
    use them like
    <Context path="/myPath" docBase="myDocBase" debug="5" reloadable="true" crossContext="true" source="org.eclipse.jst.j2ee.server:myDocBase">
                          <Resource name="jdbc/myDB"
                                                     auth="Container"
                                                     type="javax.sql.DataSource"
                                                     maxActive="100"
                                                     maxIdle="30"
                                                     maxWait="10000"
                                                     username="$$$"
                                                     password="$$$"
                                                     driverClassName="com.mysql.jdbc.Driver"
                                                     url="jdbc:mysql://localhost/myTest" />
                     </Context>and i dont know why you define two resources
    try to look at
    http://forums.sun.com/thread.jspa?messageID=11013089&#11013089

  • HT1863 i have my serial number. I bought this macbook pro in Cleveland Ohio, and it is still under warranty. Now I am travelling in India and my disk drive is not working. need local help

    i have my serial number. I bought this macbook pro in Cleveland Ohio, and it is still under warranty. Now I am travelling in India and my disk drive is not working. need local help. in chennai. I also need to retriwve my warranty paper online, as I am right now in chennai ad all my docs are in Cleveland.

    You posted in the iPad forum instead of the MacBook Pro forum. To get answers to your question, next time post in the proper forum. See https://discussions.apple.com/index.jspa  I'll request that Apple relocate your post.
     Cheers, Tom

  • I am new to mac air. Today i installed (unsuccessfully!) MAPLE16 on my mac book air. Now since it does not work properly (it also does not appear in  applications) i decide to delete it. I could not remove it from launchpad . i need urgent help

    i am new to mac air. Today i installed (unsuccessfully!) MAPLE16 on my mac book air. Now since it does not work properly (it also does not appear in  applications) i decide to delete it. I could not remove it from launchpad . i need urgent help from your side.

    Any third-party software that doesn't install by drag-and-drop into the Applications folder, and uninstall by drag-and-drop to the Trash, is a system modification.
    Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
    I never install system modifications myself, and I don't know how to uninstall them. You'll have to do your own research to find that information.
    Here are some general guidelines to get you started. Suppose you want to remove something called “BrickMyMac” (a hypothetical example.) First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickmyrmac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, contact the developer. While you're waiting for a response, download BrickMyMac.dmg and open it. There may be an application in there such as “Uninstall BrickMyMac.” If not, open “BrickMyMac.pkg” and look for an Uninstall button.
    You generally have to reboot in order to complete an uninstallation.
    If you can’t remove software in any other way, you’ll have to erase and install OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    You may be advised by others to try to remove complex system modifications by hunting for files by name, or by running "utilities" that purport to remove software. I don't give such advice. Those tactics often will not work and maymake the problem worse.

  • Need urgent help! - I accidentally sycn my friend's iphone account to my company's phone. I could not swich back to my own icloud account because of the icloud password i enter was incorrect. My friend does not use this icloud account since age.

    Need urgent help! - I accidentally sync my friend's iphone account to my company's iphone. I could not switch back to my own icloud account because of the icloud password i enter was incorrect. My friend does not use this icloud account since age only remember 1 password which i already try but iphone shown that " incorrect password" I checked on icloud ID and try to log in but it shown as " You Apple ID was disable for security reason. To enable your account must reset password" but so bad again, the email address that he used to create icloud ID also lock for security reason. May Apple Supporter please help reset it ASAP? I can verify that I am the iphone's owner, as it belong to company's phone.

    Have your company IT department get proof that the company was the
    original purchaser of the iPhone and visit a physical Apple store with
    proof of original purchase, proof that person is company representative,
    and the iPhone - Apple may be able to help. If no physical Apple store,
    contact Apple - you will still need the same items of proof.

  • I need URGENT help, My company just changed all our iphones to Samsung Notes and i am now unable to get ANY messages from current iphone friends and colleagues colleagues.... This is certainly unfair and inconvenient.... Once loved apple not so much now

    I need URGENT help, My company just changed all our iphones to Samsung Notes and i am now unable to get ANY messages from current iphone friends and colleagues colleagues.... This is certainly unfair and inconvenient.... Once loved apple not so much now

    Go to: https://supportprofile.apple.com/MySupportProfile.do
    Log in if not already logged in.
    Click on "Edit Products"
    Click on the "X" to the right of the product.
    Click "Unregister".
    If that doesn't work, you're going to need to call AppleCare and have them remove your phone from the system.
    Best of luck.

  • I have Mac mini and there is partition of boot camp but some miss understanding the osx 10.8.2 is deleted and while I m going to recovery mode the portition can not removing and the also cant repaired what I do I need urgent help ???? Please ?????

    I have Mac mini and there is partition of boot camp but some miss understanding the osx 10.8.2 is deleted and while I m going to recovery mode the portition can not removing and the also cant repaired what I do I need urgent help ???? Please ?????

    Do you have a Time Machine backup or clone?  If not,
    all is lost if you have in fact deleted your OSX partition
    and you will have to do a reinstall from Recovery HD
    and install all else.

  • BW error. Need urgent Help( I will give out full points).

    We have BW version 3.1 and content 3.3.
    We are doing loads to ODS and getting oracle partition error. It gives Oracle partition error ORA-14400. inserted partition key doesn't map to any parititon.
    The exception must either be prevented, caught within the procedure               
    "INSERT_ODS"                                                                     
    (FORM)", or declared in the procedure's RAISING clause.                          
    o prevent the exception, note the following:                                     
    atabase error text........: "ORA-14400: inserted partition key does not map to   
    any partition"                                                                   
    nternal call code.........: "[RSQL/INSR//BIC/B0000401000 ]"                      
    lease check the entries in the system log (Transaction SM21).                                                                               
    ou may able to find an interim solution to the problem                           
    n the SAP note system. If you have access to the note system yourself,           
    se the following search criteria:                                                
    The termination occurred in the ABAP program "GP3WRFMGVS1D8IW16LLGSL4QQKH " in       
    "INSERT_ODS".                                                                       
    he main program was "SAPMSSY1 ".                                                                               
    he termination occurred in line 41 of the source code of the (Include)              
    program "GP3WRFMGVS1D8IW16LLGSL4QQKH "                                              
    f the source code of program "GP3WRFMGVS1D8IW16LLGSL4QQKH " (when calling the       
    editor 410).                                                                        
    rocessing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in      
    the                                                                               
    rocedure "INSERT_ODS" "(FORM)" but was not handled locally, not declared in         
    the                                                                               
    AISING clause of the procedure.                                                     
    he procedure is in the program "GP3WRFMGVS1D8IW16LLGSL4QQKH ". Its source code      
    starts in line 21                                                                   
    f the (Include) program "GP3WRFMGVS1D8IW16LLGSL4QQKH ".                                                                               
    Please help me guys. I will award points for good answers.

    Dear Sir,
    Now I have got the problem like yours (load to ODS and ORACLE partition error ORA-14400 with INSERT_ODS). Tell me, please - did you solve this problem?
    Can you recommend me something? What did you do with partitions?
    Help me, please - I need urgent help too.
    GLEB ([email protected])
    P.S. Sorry for my English, I haven’t got any language practice for a long time.

  • R12 AR Invoice raxinv  -Customization (add columns) - need urgent help

    Hi,
    I need urgent help in customization of AR invoice report (raxinv) in R12. I am doing report customization for Brazil. As soon as I add one more column in report common query, build query and main query Q_invoice. Report changes to new variables in report editor q_invoice itself for example from remit_to_address_id to remit_to_address_id1 , previous_customer_id to previous_customer_id1 and start giving error that original variables e.g. remit_to_address_id , previous_customer_id are not defined in the query. Variable names and xml tags are also different from each other. even after trying to fix it, error persist.
    Thanks
    Anju

    Hi,
    I need urgent help in customization of AR invoice report (raxinv) in R12. I am doing report customization for Brazil. As soon as I add one more column in report common query, build query and main query Q_invoice. Report changes to new variables in report editor q_invoice itself for example from remit_to_address_id to remit_to_address_id1 , previous_customer_id to previous_customer_id1 and start giving error that original variables e.g. remit_to_address_id , previous_customer_id are not defined in the query. Variable names and xml tags are also different from each other. even after trying to fix it, error persist.
    Thanks
    Anju

  • I need urgent help to remove unwanted adware from my iMac. Help!

    I need urgent help to remove unwanted adware from my iMac. I have somehow got green underline in text ads, pop up ads that come in from the sides of the screen and ads that pop up selling similar products all over the page wherever I go. Its getting worse and I have researched and researched to no avail. I am really hestitant to download any software to remove whatever it is that is causing this problem. I have removed and reinstalled chrome. I have cleared Chrome and Safari cookies. Checked extensions, there are none to remove. I need to find an answer on how to get rid of these ads. Help please!

    You installed the "DownLite" trojan, perhaps under a different name. Remove it as follows.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    /Library/Application Support/VSearch
    Right-click or control-click the line and select
    Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "VSearch" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchAgents/com.vsearch.agent.plist
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    Restart and empty the Trash. Don't try to empty the Trash until you have restarted.
    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    This trojan is distributed on illegal websites that traffic in pirated movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the DownLite developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. It must be said that this failure of oversight is inexcusable and has seriously compromised the value of Gatekeeper and the Developer ID program. You cannot rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • Need Urgent Help in PM8M-V H problem - keyboard freeze

    Hi everyone,
    I'm a newbie in this forum and I really need urgent help with my motherboard.
    My PC specification:
    Intel Pentium 4 2.4GHz
    MSI PM8M-V H W7104VMS v3.4 022206 14:32:17
    1GB(512MB x 2) Kingston PC3200 400MHz
    Seagate SATA II 320GB ST3320620SV (set with jumper to support SATA I)
    Power Color ATI Radeon 9550 256MB
    Lite-On DVDRW SHM-165P6S
    USB mouse, PS/2 Keyboard
    I really appreciate if anyone can help to guide me in solving my problem. My keyboard tends to freeze at the part where it says "Press any key to boot from CD". This limits me to do anything until I'm totally loaded into Windows.  Thus, disable me to perform any formating and fresh installation of OS. However, the keyboards works fine at the begining of the POST and in BIOS. Is there any settings in BIOS that i should perform?.....
    However, I realise in order to get through the foresaid message without the the keyboard freeze up is by keep on trying to boot up and shut down until it works (but only work once, then hv to try again), but this is not a solution as if what if I wanted to have 2 OS?... I cant use the keyboard to choose either of the OS installed. I have tried to change the RAM, change keyboard, use the build in VGA, or even remove the motherboard from the ATX casing - result: still have the same problem. What should I do??.. I have look around the forum for answers but there isnt any (I hope I didnt miss any). Is there any problem with my motherboard, or its BIOS, or any of the harware compatibility or etc..... what actually can I do?   
    I do not dare to perform any BIOS update Unnecessary (it seems that many have problems with BIOS problem in this forum) and moreover i think my BIOS is the most up-to-date. I cant find any new version in the net. Anyway I will check this topic frequently as possible to hope for any solution. What is the best solutions?
    Thanks.

    But the thing that makes me wonder is, my BIOS version is the latest but why this type of problem occurs??
    What version of BIOS should I use?? Any recommendation ??
    Thanks.

  • Need urgent help in listing out checklist from DBA prespective for BI Implementation Project

    Hello Guys,
    We are in Designing phase Data Modeling of PDW/APS Implementation Project.
    I need urgent help in making a checklist from a DBA perspective.
    Like what are things ill be needing at a time of implementation/Deployment.
    Your expert comments and help will be highly appreciated.
    Thank you,
    Anish.S
    Asandeen

    You can get good summary of checklist from this article about
    DBA checklist for data warehousing.
    Which highlights on below pointers:
    New system or old. (I.e. Up-gradation vs starting from scratch)
    Complexity of SQL Server architecture 
    SQL Server storage
    Determining SQL Server processing power
    SQL Server installation consideration 
    SQL Server configuration parameter
    SQL Server security
    SQL Server Database property
    SQL Server jobs and automation
    Protecting SQL Server data
    SQL Server health monitoring and check ups
    SQL Server ownership and control 
    based on my real time experience, I will suggest you to keep an eye on 
    Load performance (It will be useful when your database(Warehouse) will have huge amount of data)
    System availability (Check for Windows update and up time configuration) 
    Deployment methodology should be planned in advance. Development of packages and respective objects should be done systematically.
    Source control mechanism 
    Disk space and memory usage
    You might or might not have full rights on production environment, so be prepared to analyze production environment via Select statements [I guess you got my point]
    Proper implementation of Landing , Staging and Mart tables.
    Column size (this can drastically decrease your database size)
    Usage of indexes (Index are good, but at what cost?)
    I hope this will assist you in building your check list.

  • Need urgent help. I have been trying to resolve this problem to no avail. I am able to preview my sp

    Need urgent help. I have been trying to resolve this problem to no avail. I am able to preview my sprymenu on my local browsers opera, google crome, and IE but when it is uploaded, the sprymenu squashes to the left hand side.

    Please get your checkbook ready. (Only kidding.)
    Have you ever done a hard factory reset of your Airport Express base? If not, then try it. Push down the reset button with a pen, then keep it depressed as you plug AX into the wall and keep holding it down until the green light blinks 4 times and then turns amber. Then let go. Unplug your broadband modem for a couple of minutes and shut down your Mac. First restart the modem, then the Mac. Use Airport Setup Assistant to set up a new network from scratch.
    In System Prefs > Network > Show > Network Port Configurations drop n drag Airport to the top of the list and deselect all port configurations that you do not use.
    That's a start.

  • Need urgently help for OBIEE Installation (11g)

    Hi all,
    I am having problems trying to install Oracle Business Intelligence 11g on Windows 7.
    The Installation Wizard hangs on the step: Domain Configuration (0%). The Creating Domain shows In progress.
    The log under the Inventory directory shows me only following:
    INFO: Ending the inventory Session
    INFO: Using an existing InstallAreaControl for this Inventory Session with existing access level 1
    INFO: The ORACLE_CONFIG_HOME env var is set to
    INFO: The ORACLE_CONFIG_HOME env var is set to
    INFO: The ORACLE_CONFIG_HOME env var is set to
    INFO: The ORACLE_CONFIG_HOME env var is set to
    INFO: The ORACLE_CONFIG_HOME env var is set to
    INFO: The ORACLE_CONFIG_HOME env var is set to
    INFO: The ORACLE_CONFIG_HOME env var is set to
    INFO: The ORACLE_CONFIG_HOME env var is set to
    INFO: The ORACLE_CONFIG_HOME env var is set to
    INFO: The ORACLE_CONFIG_HOME env var is set to
    INFO: The ORACLE_CONFIG_HOME env var is set to
    INFO: The ORACLE_CONFIG_HOME env var is set to
    INFO: The ORACLE_CONFIG_HOME env var is set to
    INFO: The ORACLE_CONFIG_HOME env var is set to
    INFO: The ORACLE_CONFIG_HOME env var is set to
    INFO: The ORACLE_CONFIG_HOME env var is set to
    I really don't know what to do. I am searching for a solution on Internet, but I don't find it.
    I need urgently help. I would appreciate someone could help me.
    We can do together via Webex or something similar. It doesnt worth it for me to type here and wait till someone give me an answer (if any), trying to find out how I did.
    I hope to find the help I need. I am desperated :-(

    Can I install the OBIEE 10g version?I am not sure but i think OBIEE is not certified with windows 7. i could not find any MOS doc confirming same. Please log a call with oracle to confirm this.
    would it work fine with the Oracle Database 11g and the RCUs?. Yes OBIEE 10g will work with oracle database 11g.
    Thanks,
    JD

  • Switch until release using keyboard...need urgent help

    Hi,
    i have a problem of configuring "switch until release" action using keyboard....
    or is it there no this function at all...
    it seems like all i can do is press to ON and press again to OFF
    anyone can help...
    need Urgent help....
    thank you in advance..

    This isn't possible because of the way operating systems
    handle keyboard events. When you press a keyboard key, it does not register as
    one key down. For whatever your operating system is set for as far as repeating
    characters, it will register that many key down presses. The mouse works
    differently, when you press the mouse it keeps that event "locked"
    until you release the mouse. Because of this, you can not make a switch until
    release using the keyboard; this definition is only for mouse clicks.
    Brandon Vasquez | Software Engineer | Integration Services | National Instruments

Maybe you are looking for

  • Mail: How to check an account ONLY from specific Network Location?

    I use multiple macs, and use my .mac account to synchronize mail accounts, rules, smart mailboxes, signatures, etc. However, I'd actually like to specifically NOT check certain accounts on some machines. Even though the account settings are synced, I

  • Can I go back to a previous date in time?

    I've done an Archive and Install thinking it would save my old settings and documents etc but instead it did a new clean install so I've lost all my Bookmarks, all my documents - my entire 3 years of records that I built up. I thought there was a pro

  • How do I get Logic to sync to external audio device?

    Here is what I am trying to do: I have a Big Ben which I want to use to sync everything together. I have Lynx Aurora converters on the way but for now I need to use a 002 rack with a Presonus DigiMax for audio i/o. So basically, I want to connect BIg

  • Password Protected pdf's

    I am trying to view a password protected PDF on an iPad but not having any success yet. I think I am transferring the PDF fine but can't get it to open.

  • Strange problem in XIF adapter?

    Hi , I met a strange problem, I used to XIF adapter and IDoc to replicate BP to external system. When I update and save a BP in system, there's no IDoc generated when I check BD87. But if I use CRMXIF_PARTNER_TEST, the IDoc can be generated and sent