JNDI with TOMCAT4.0 to CLOUDSCAPE ? need explanation

Hi All,
I'm using TOMCAT4.0 and Cloudscape.
I got below code 1,2,and 3. When I ran it, I can't look up the cloudscape database ?
(I print out "************** null ***************")
Why? It looks like there is no link between jdbc/books and cloudscape database.
How do we correct it? or what is missing in terms of network connection? Or any value that I have is incorrect?
Thanks,
Paul.
1. web.xml
<resource-ref>
<res-ref-name>jdbc/books</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
2. server.xml
<Resource name="jdbc/books" auth="Container"
type="javax.sql.DataSource"/>     
<ResourceParams name="jdbc/books">
<parameter><name>user</name><value></value></parameter>
<parameter><name>password</name><value></value></parameter>     
<parameter><name>driverClassName</name>
<value>COM.cloudscape.core.JDBCDriver</value></parameter>
<parameter><name>driverName</name>
<value>jdbc:cloudscape:rmi:books</value></parameter>
</ResourceParams>
3. cloudscape is running(database is OK) and I ran test.jsp
javax.naming.Context ctx = new javax.naming.InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("java:comp/env/jdbc/books");
if (ds == null)
     out.println("************** null ***************");
else     
     javax.sql.Connectin conn = ds.getConnection();

Hi Fredrik,
(Thank, Mr. Expert)
0. Cloudscape came with J2EESDK1.3 and is running.
1. Basically, I already do a test with J2EE sun server
J2EESDK1.3 and it work fine because there is physical link between
the jdbc/books and jdbc:cloudscape:rmi:books. However, it look there is no
physical link for Tomcat4.0.
2.
javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("java:comp/env/jdbc/books");
give me "null"
(3. I have to see why ?)
-- Paul.

Similar Messages

  • Need explanation on prerouting post routing and translation rouitng with examples

    Hi ,
    i need explanation on prerouting post routing and translation rouitng  with examples.can anybody help me out ?
    thanks in advance
    regards
    bala

    Hi,
    prereouting: call comes in, hits ICM, script is run, telling the routing client (PSTN) where to route the call to (so the call is routed before (pre-) connection, or rather, establishment).
    Postrouting: call comes in, is connected and then it hits ICM (so the call is routed after begin connected).
    Translation routing is an interesting hybrid: call comes in, is connected but the party the call is connected to, is being monitored by ICM (so it sends the call away but it keeps an eye on it). When it's necessary, call is transferred to a different destination.
    Examples:
    Prerouting: PSTN -> ICM (script) -> PSTN -> destination phone answers
    Postrouting: PSTN -> call is answered -> ICM -> transfer to destination phone, answered
    Translation routing: PSTN -> call is answered -> ICM transfers to IVR port, then transfers to final destination phone (agent).
    G.

  • Do i have to use JNDI with EJBS?

    Hi
    I want to use JNDI to lookup a system which i will send messages to using JMS. I would like to have some java classes on Tomcat to do the job. But...whenever i hear about JNDI it is always in relation to EJBs. Can i only use JNDI with EJBS?
    If i can use JNDI is there anything important i need to know about.
    Thanks in advance!
    San H.

    You can definitely use JNDI outside of EJB's - in particular, it's a great interface for dealing with LDAP servers, even securely, and can also be used for DNS interfacing, COS, RMI registries, etc.
    While JNDI was chosen as the method by which J2EE components can locate other components in a distributed environment, it's by no means limited to that task :) It's a wonderful API, and in terms of things you need to know, most everything is covered fairly well at the JNDI tutorial in the various trails that are mapped out there.
    http://java.sun.com/products/jndi/tutorial/
    Good luck!
    James
    James Manning | Principal Engineer
    Porivo Technologies, Inc.
    919.806.0566 | [email protected]
    http://www.porivo.com/
    Measuring end-to-end Web performance.
    Register for a FREE Performance appraisal:
    http://www.porivo.com/peerReview/eval.html

  • Need explanation about adobe products for developers

    I need explanation about what products I need to use for developing dynamic adobe PDF forms..
    Currently I use only LiveCycle Designer ,but I in previous posts I found that I need to use additional products as Acrobat or Extension to designer.
    My question is if I need to devlop dynamic PDF form what exactly products I need that will be cover all developing issues?

    Hi,
    Covering all developer/developing issues is very broad.
    LC Designer is part of the LiveCycle suite. Which components you need from the suite will depend on your environment, your workflow, and how you want to process the data.
    More information here: http://www.adobe.com/products/livecycle/
    If you wanted to create forms and use Reader to interact with the form, then the minimum specification would be:
    LC Designer
    Adobe Reader
    However there would be restrictions in the functionality (eg you could not save the form in Reader as it would not be Reader enabled).
    If you want to Reader enabled the form in Acrobat Standard v9 or Acrobat Pro v8, then you will need Acrobat as well. This will unlock some of the features.
    If you want users with Reader to have full access to all features (as if the form was opened in Acrobat) then you will also need LC Reader Extensions ES2. You would use this to Reader enable the form before you deploy it.
    See summary here:
    Other components in the LC suite provide other functionality such as digital signatures, rights management, etc. You should talk directly with the Adobe sales rep in your geographical location.
    Good luck,
    Niall
    Assure Dynamics

  • How to restore my ipad?My ipad say on screen CONNECT TO ITUNE.How can i do when i connect with computer.It is need itune new version.Can you sent me.I will be waiting your answer.Please help me sir.

    How to restore my ipad?My ipad say on screen CONNECT TO ITUNE.How can i do when i connect with computer.It is need itune new version.Can you sent me.I will be waiting your answer.Please help me sir.

    Check for Updates.
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%208/78d42b19fa42e8d83b5 5a65e1333373f_zpsf58bbe10.jpg

  • How do I get the contacts from my mac to syn with icloud? I need to back up my phone and don't want to lose my contacts when I get a new phone.

    How do I get the contacts from my mac to sync with Icloud? I need to back up my phone since I will be receiving a new one tomorrow and the icloud contacts are not the same as the ones on my mac.  Help me

    OS X Lion. 10.7. Your profile says your running 10.6.8, which is Snow Leopard. You need 10.7 to use iCloud with your Mac.

  • HT203808 I deleted my old e-mail account associated with my iCloud, i need to reset both my ID and my password. however i don't remember that password. how can i reset it?

    I deleted my old e-mail account associated with my iCloud, i need to reset both my ID and my password. however i don't remember that password. how can i reset it?

    Hey Frankgates!
    I have an article here that can tell you how to do this:
    Apple ID: If you forget your password
    http://support.apple.com/kb/HT5787
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • I just started using fire fox and I cant figure out how to add a new folder to my bookmarks. Can anybody explain how in detail (I'm bad with computers so I need real detail) Please and thank you. :)

    I just started using fire fox and I can't figure out how to add a new folder to my bookmarks.
    Can anybody explain how in detail (I'm bad with computers so I need real detail)
    Please and thank you. :)

    If you use extensions (Tools > Add-ons > Extensions) like <i>Adblock Plus</i> or <i>NoScript</i> or <i>Flash Block</i> that can block content then make sure that such extensions aren't blocking content.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    You can use one of these to start Firefox in <u>Safe mode</u>:
    *On Windows, hold down the Shift key while starting Firefox with a double-click on the Firefox desktop shortcut
    *On Mac, hold down the Options key while starting Firefox
    *Help > Restart with Add-ons Disabled
    If it works in Firefox Safe-mode then disable all extensions (Tools > Add-ons > Extensions) and then try to find which is causing it by enabling one extension at a time until the problem reappears.
    Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    See also:
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • I can't download the apps with big size like need for spees, but in apps with normal size(less than 100KB)there is no problem,is there any body who can help me?

    I can't download the apps with big size like need for spees

    Have a little patience. 4 minutes is only a short time for someone to find your post and reply to it. Also clicking on "This Solved My Problem" marks your problem as solved so many folks that may otherwise help will pass the question by since it is "solved."
    I suggest you start a new question that gives a good title to a specific problem. Then in the body of the thread describe the problem in detail, tell us what steps you have tried so far to correct the problem, what happened, and what error messages you received.

  • I have a mid 2010 macbook pro with 4GB memory and need to purchase an additional 4 GB.  Do I need to purchase 8GB of memory to upgrade or can a 4GB upgrade be placed next to the existing memory?

    I have a mid 2010 macbook pro with 4GB memory and need to purchase an additional 4 GB to.  Do I need to purchase 8GB of memory to upgrade or can a 4GB upgrade be placed next to the existing memory?

    You need to purchase 8 GBs as two 4 GB modules. Must meet these requirments:
    Maximum Memory
    8.0 GB
    Memory Slots
    2 - 204-pin PC3-8500 (1066 MHz) DDR3 SO-DIMM

  • I have a PDF with a diagram, I need to translate the text so I open it in Illustrator.  The document opnes up vertically oriented  I try to put it horizontal to be able to read and change the text  However everything I have done is not working  The artboa

    I have a PDF with a diagram, I need to translate the text so I open it in Illustrator.  The document opens up vertically oriented  I try to put it horizontal to be able to read and change the text  However everything I have done is not working  The artboard does change, but the diagram stays vertical.....Please help  I need to finish that for today..Please help

    A PDF usually consists of one to an indefinite number of clipping masks inside each other.
    You need to be very carefull with selecting stuff.
    So you need to read the manual on how to select stuff and on the basics of Illustrator.
    On top of that: because of the complex hierarchy of PDF files, it is kind of difficult to help you without seeing anything.

  • Trouble with new G570 - help needed

    Dear All,
    I am a new, rather unhappy, customer of Lenovo UK as of this week, via a dealer called www.saveonlaptops.co.uk .
    I'm terribly disappointed to have had such a bad experience...
    I purchased a Lenovo G570 (product code M5143UK)  from the above vendor on their website using my credit card on 17th July 2011...
    I eagerly awaited delivery on 19th July 2011.
    Unfortunately, upon setting up the laptop and switching it on, it became quite clear that there are hardware issues with the laptop.
    It took me 3 hours to get the laptop working, after it repeatedly attempted to install/configure software and OS updates and repeatedly failed midway through often shutting down of its own accord too early to allow update to complete.
    3 hours after, I had got it working, but immediately noticed how SLOW the laptop is...The 3 year old Dell laptop I sold last week ran much much faster than this Lenovo ever has.
    The boot time averages over 2 minutes just to get to login screen, and applications are unacceptably slow loading/running.
    I had spoken with Lenovo UK support whom suggested that it should run no slower with a retail version of Windows 7 64-bit OS on it, which at the consent of them, I duly installed.  Unfortunately, a further 4 hours of waiting for repeatedly failing OS updates to install took place, before this version of Windows 7 (clean install) ran even worse than the original OS image. 
    Lenovo UK support have said that I need to return the laptop to the vendor to be assessed, but the vendor is currently refusing to accept any come back as such, and saying that due to the clean install carried out (at the consent of your support guys remember) that they will not return and swap for a brand new like-for-like laptop.
     I have been assured previously by Lenovo that clearing a partition off of the HDD and applying a fresh install will not invalidate warranty...!!!!!!!!!
    I have never received such poor service from a hardware vendor or a how manufacturer, especially seeing as I had fully researched the brand/model I was to purchase for weeks prior to final purchase.
    I am writing to your goodself in the hope that you can arrange for a brand new laptop of the same spec to be sent to me, and arrange for the courier to collect the faulty one at the same time to stop me being without a laptop.
    The vendor has been rude, unhelpful, dishonoring towards me and Lenovo and I wish I had not approached them to purchase this laptop.  The price though was £80 odd cheaper than with Lenovo direct.
    All I want is a non faulty laptop to last me 5 years before i change for a new Lenovo (if the service is good!) model.
    You will find a copy odf my order attached.
    I look forward to hearing from you soon.
    Kindest regards
    Invoice Date:
    18/07/2011
    Customer Name:
    Order Number:
    Invoice Address:
    Delivery Address:
    Stock Code
    Description
    Price
    Qty
    Sub Total
    M5143UK
    Lenovo G570, Intel® Core™ i5-2410M Dual Core Processor, 15.6" HD Screen, Windows 7 Home Premium Edition 64-bit, 6GB DDR3 RAM, 750GB HDD, Blu-Ray, Dedicated Graphics, M5143UK
    £563.78
    1
    £563.78
    DEL-000011
    £9.98 - Next Day (UK MAINLAND Mon-Fri) PARCEL NEXTDAY
    £9.98
    1
    £9.98
    Surcharge:1.50% Card Surcharge>>
    £8.62
    1
    £8.62
    Price (Exc):
    £485.32
    Price (Inc):
    £582.38

    welcome to the forum,
    It's regrettable to read about your experiences to date, obviously not an invigourating experience, reads very much like a pillar to post scenario
    Firstly; a clean windows install does not invalidate the warranty regardless of what the reseller says. The warranty covers the hardware, unless explicity stated and purchased there is no warranty on software whatsoever.
    IMHO your first point of contact should have been the retailer to ask if they were in a position to offer a possible solution. Should they then have at some point instructed you to contact Lenovo support you would be in a stronger position to argue that they should resolve the issue. Whatever, you did the right thing by contacting support. Did support issue you with a call number which you noted down and could share? Against the call number there will be notes logged by the service rep. and you could ask the retailer to call and validate the instructions you were given by support.
    As this is a peer to peer forum, provided by Lenovo in order that members may seek assistance from others and share their experiences, there is a Lenovo presence which deals with some of the broader issues, it's not always possible for them to assist on all individual issues. Members will certainly be glad to and be able to assist you diagnose any possible hardware fault with the system which would then hopefully provide you with the facts you need to hopefully reach a speedy resolution.
    You're probably pretty miffed at the moment and don't want to read the following, but it's meant well.
    As a first step I'd like to suggest downloading the mediacreator from this site and use the media you create to test the system's hard drive, please let us know the results.
    Best Regards
    edit; typo
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 

  • After entering the redemption code from Adobe Photoshop CC, I keep getting an error saying "This card was purchased in a country that does not match your Adobe ID. You can try signing in with a different Adobe ID or get in touch with us if you need help."

    Hi. I'm a Mac user. After entering the redemption code from Adobe Photoshop CC, I keep getting an error saying "This card was purchased in a country that does not match your Adobe ID. You can try signing in with a different Adobe ID or get in touch with us if you need help." What should I do?

    Did you purchase the software in another country than where you live?

  • How come iMac can see Pmy iPhone with iPhoto but cannot syncronize with iTunes? Maybe need an update version? As a matter of fact iTunes version on iMac is a 10.4 and in iPhone I How come iget a 10.6: the iMac is brand new sunce I used a pc before. Thanks

    How come iMac can see my iPhone with iPhoto but cannot syncronize it with iTunes? Maybe need an update version? As a matter of fact iTunes version on iMac is a 10.4 and in iPhone I get a 10.6: the iMac is brand new since I just come from a pc. Thanks

    Hi ...
    see Pmy iPhone with iPhoto but cannot recognnized with iTunes?
    Try this support article > iOS: Device not recognized in iTunes for Mac OS X

  • I'm changing my second computer; With CS6, do I need to deactivate each app, or just the suite?

    I'm changing my second computer; With CS6, do I need to deactivate each app, or just the suite?

    Hi HRHundt2, if you have suite installed, then if you try deactivating any application will eventually deactivate complete suite.

Maybe you are looking for