I m not getting connected to oracle 9i database using my ejb...

hi i have made a simple ejb which simply connects to a database of oracle 9i using a datasource on oracle 10g application server...but now my problem is that when i am trying to deploy the ejb ..it is not getting deployed...it shows the following error..
Deployment failed:nested exception
resolution:
base exception:
com.evermind.server.rmi.OrionRemoteException
Disconnected:Connection reset. Disconnected:Connection reset.
the code i am using for EJB class is as follows
package Simpapp;
import javax.ejb.*;
import java.sql.*;
import javax.naming.*;
import javax.sql.DataSource;
public class SimpappBean implements SessionBean {
    static final String DATASOURCE = "bajaj";
    static final String SQL = "select * from login ";
    DataSource ds;
    public String upper (String input) throws java.rmi.RemoteException {
     try {
         Connection conn = ds.getConnection ("bajaj10g","bajaj10g");
         Statement sql = conn.createStatement ();
         //sql.setString (1, input);
         ResultSet results = sql.executeQuery (SQL);
         if (results.next () == false) {
          System.out.println ("No rows for "+ input);
              throw new java.rmi.RemoteException ("SQL failure");
         } // if
         String result = results.getString ("username");
         results.close ();
         sql.close ();
         conn.close ();
         if (result == null) {
          System.out.println ("NULL result for "+ input);
              throw new java.rmi.RemoteException ("SQL failure");
         } else
          return (result);
     } catch (SQLException sqle) {
         System.err.println ("While executing SQL: " +
          sqle.getMessage ());
         throw new java.rmi.RemoteException ("SQL failure");
        } catch (Exception e) {
         System.err.println ("Unknown Exception: " +
          e.getMessage ());
         throw new java.rmi.RemoteException ("Bean Exception: " +
          e.getMessage ());
     } // catch
    } // simpapp
    public void ejbCreate () {
         try {
         Context ctx = new InitialContext ();
         ds = (DataSource) ctx.lookup (DATASOURCE);
     } catch (Exception e) {
         System.out.println ("While creating Bean " +
          e.getMessage ());
     } // catch
    } // ejbCreate
    public void ejbRemove () {}
    public void ejbActivate () {}
    public void ejbPassivate () {}
    public void setSessionContext (SessionContext ctx) {}
} // SimpappBeancan any body suggest me where lies the problem???
all my Home ,Remote classes are doing well when they are used for any other simple helloworld type of program

Is that the only Oracle client installed? If you have another one hanging around it could be using the wrong tnsnames file.

Similar Messages

  • Cannot connect to Oracle express database using Oracle forms 10 on win XP

    Hello All,
    I have installed Oracle Developer Suite 10g along with Oracle Express edition database on Windows XP home edition. (Do get successful installation message)
    When i open up Forms builder and try to use connect option- it comes up with user name, password and database dialogue box?
    If I enter user name and password I choose while installation express edition database it comes up with the following error:
    "ORA-12560:TNS:protocol adapter error"
    Have checked the services and they all seem to be running, have tried deinstalling/installing by removing registry values but still no luck.
    In fact what ever I type the error message remains the same.
    On the other hand I can access Express edition database using user name and password I choose during its installation.
    Can any one please reply me what details i need to enter here? Is it same as I set up during express edition database installation? What about database?
    Please help. As I am struggling big time.
    Thanks in advance.

    You may be having the same problem as this guy:
    Forms 6i - ora-012203 tns:unable to connect to the destination
    You need to start SQL Plus and see if you can log in, too, to make sure there are not other problems.
    What are you using for the Database name (the third entry following username and password)?

  • Not getting connection with Oracle 10g

    Dear All,
    I have installed oracle 10 g on linux , but when I want to connect it gives error msg like this
    "Firefox can't establish a connection to the server at 127.0.0.1."
    Please give me reply

    user8451897 wrote:
    I have installed oracle 10 g on linux , but when I want to connect it gives error msg like this
    "Firefox can't establish a connection to the server at 127.0.0.1."What do you expect to access via HTTP on localhost (127.0.0.1)?
    Are you looking for Oracle's Enterprise Manager (OEM)? Are you looking for Oracle's XDB (XML database's webdav interface)? Are you looking for Apex (Oracle's Application Express)? Something else?
    Installing also does not mean that you have created any of these services. You typically needs to run dbca (Data Base Creation Assistant) to create a database instance first (which will also setup OEM for you). OEM, XDB and Apex also do not run on tcp port 80 as that requires root privs that the Oracle processes do not have.
    So you need to explain exactly what you are doing and what you are expecting.

  • Unable to connect to Oracle 9i database using Developer/2000

    Currently we're using Developer/2000 and Oracle 7.3 Database in Client/Server Environment.Our problem is initially we want to just upgrade the database from 7.3 to 9i and connect our clients through Developer/2000.It always gives TWO TASK COMMUNICATION ERROR .Can someone please help me in this way.Thanks in advance

    make sure that "sun.jdbc.odbc.JdbcOdbcDriver" is on your classpath ,

  • Information in the case folder is not getting updated in Oracle Credit Mgt

    Hi,
    I have created an SO and an Invoice for this SO for a particular customer. Now, when I create a credit application and a case folder in OCM for this customer, Fields like Receivables Balance, Credit Exposure, Days Sales Outstanding etc. in the case folder are not getting updated. These fields are not getting updated even after refreshing the case folder. It means that the information from the 'Receivables Responsibility is not getting updated in the case folder.
    I have already run the 'Initialize credit Summaries' concurrent program after creating the Sales Order and Invoice.
    PS: The case folder gets updated only when I set the Profile Option: "AR: Allow summary table refresh" to Yes and then running the "Refresh AR Transactions Summary Tables" concurrent program. But once this program runs the Profile Option again becomes 'No' (Which is a Standard functionality).
    So this is a manual way to update the case folder. My requirement is that the case folder should get updated automatically and no manual intervention should be required.

    Sumit Malik wrote:
    Hi,
    I have created an SO and an Invoice for this SO for a particular customer. Now, when I create a credit application and a case folder in OCM for this customer, Fields like Receivables Balance, Credit Exposure, Days Sales Outstanding etc. in the case folder are not getting updated. These fields are not getting updated even after refreshing the case folder. It means that the information from the 'Receivables Responsibility is not getting updated in the case folder.
    I have already run the 'Initialize credit Summaries' concurrent program after creating the Sales Order and Invoice.
    PS: The case folder gets updated only when I set the Profile Option: "AR: Allow summary table refresh" to Yes and then running the "Refresh AR Transactions Summary Tables" concurrent program. But once this program runs the Profile Option again becomes 'No' (Which is a Standard functionality).
    So this is a manual way to update the case folder. My requirement is that the case folder should get updated automatically and no manual intervention should be required.Duplicate post -- Information in the case folder is not getting updated in Oracle Credit Mgt

  • I am trying to setup wireless using my old dome Airport ExtremeBase station. I had previously used it about 5 years ago when I had dial up but have now switche to DSL with Windstream. I can not get connecte as ABS keeps trying to dial up(the phone number)

    I am trying to setup wireless using my old dome Airport Extreme Base station. I had previously used it about 5 years ago when I had dial up but have now switched to DSL with Windstream. I can not get connected as the ABS keeps trying to dial up(the old phone number). When I tried to change my network settings an annoying popup window says "your network settings have been changed by another application'. I have no idea what the message is all about and when I close this window it immediately pops up again and prevents me -as far as I can tell -from changing my Airport settings?  I need advice on how to get this wireless setup done. Maybe a reset? or something else? I have the DSL phone line plugged into WIndsteam Seimens Speedstream 4200 modem and then the ethernet (yellow) wire from the WIndsteam Seimens Speedstream 4200 modem to the port on the dome that is a circle of dots.

    1)Can you explain how using the AEBS as a bridge will work with the Seimens Speedstream4200?
    As a bridge, the AEBS will basically become a wireless access point. This will allow the AEBS to provide a wireless network, but still allow the Speedstream to provide NAT & DHCP services for the wireless clients connected to the AEBS. If the AEBS was left as a router, you would have a double-NAT condition which isn't necessary bad in itself, but would create a second subnet. That would make it more difficult for clients connected to the AEBS to access clients connected to the Speedstream.
    2) Is there a link that will guide me through the steps to set the AEBS as a bridge?
    You can easily reconfigure the AEBS as a bridge using the AirPort Utility.
    ref: AirPort Utility > Select the AEBS > Manual Setup > Internet > Internet Connection > Connection Sharing = Off (Bridge Mode)
    3)Can I just connect the DSL phone line to the AEBS and eliminate the Speedstream4200?
    Unfortunately no. The AEBS does not have a built-in DSL modem. You will still need the Speedstream to provide this function.

  • My Ipod Touch is not getting connected to the itunes its showing error

    my ipod dose not get connected in the itunes its goin on showing an error message whn ever i connect kindly help me plz

    it says tht the ipod cannot connect to d itunes and on my ipod screen an image only i can c the image is like when u buy the ipod and connect it for the first time to your laptop u can see an image right asking u to connect to the itunes only that image i can c and on my itunes page it shows an error that my ipod cannot connect......

  • Not getting connected to a data source in obiee 11g

    Hi friends,
    In OBIEE 11g I cannot able to import meta data into a new repository...
    It is not connecting to data source for importing meta data
    It throws the error like connection is failed....
    I have also restarted the services and also checked for the odbc connectivity it is showing connection is
    successful..
    I also entered the corresponding details in TNS notepad...
    These are the following details
    TEST =
    (DESCRIPTION =
    (ADDRESS =
    (PROTOCOL = TCP)
    (HOST = 172.16.1.110)
    (PORT = 1522)
    (CONNECT_DATA =
    (SID = TEST)
    The data source name that i was given is ORCLBI for my reference...
    Then why it is not getting connecting to the data source..Help me friends For importing tables to my repository as soon as it is connected to the data source...
    Thanks
    Harry...

    Hi,
    Go through venkat reply in this...May help you..Re: Cannot connect to Database from the OBIEE 11g upgraded RPD
    Regards,
    Srikanth

  • TS1398 Hi.. My internet and wifi are working on samsung phone and hp laptop but its not getting connected to iphone ipad, only skype is coming online rest all apps and safari show no internet connection. Got new linksys router WRT160NL , but situation sam

    Hi.. My internet and wifi are working on samsung phone and hp laptop but its not getting connected to iphone ipad, only skype is coming online rest all apps and safari show no internet connection. Got new linksys router WRT160NL , but situation same. Tried reboot, renew lease, forget network, reset network setting. Pls advice

    Have you tried a simple reset of your iPod to see if that helps?  To do this, press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear.
    Otherwise, have you tried any of the troubleshooting mentioned in this Apple support document?
    iOS: Troubleshooting Wi-Fi networks and connections
    B-rock

  • Report Instance not getting started in Oracle Fusion Middleware 11g Report

    Hi
    Report Instance not getting started in Oracle Fusion Middleware 11g Report Instance Error
    Rep-50125 Java.lang.nullpointerexception
    I just installed Oracle Forms,Reports 11g 11.1.1.3.0 in my machine
    Even I started opmnctl(Oracle Process Management Control). Its too running fine.
    Please Guide me the settings need to do to start the report instance.
    Regards
    Murali N S

    Hello,
    Copy rwlpr.exe from Oracle_Home\bin to Oracle_Instance\config\reports\bin
    Regards

  • After moving from my home country (Poland) to the Middle East (UAE) with the same computer I can not get connected to Apple Store and iTunes Store.

    After moving from my home country (Poland) to the Middle East (UAE) with the same computer I can not get connected to Apple Store and iTunes Store. Any clue why?
    Regards,
    Maciek

    Click the round flag icon bottom right corner of the App Store window.

  • HT4623 I can not get connected to App Store , download or update any apps,  EVEN I DID RESET ALL SETTING , STILL I RECIEVE A MESSAGE says: YOUR REQUEST IS NOT PROCESSED ,ERROR COD: 109 !! WHAT DOSE IT MEAN? HOW CAN I SOLVE THE PROBLEM??

    I can not get connected to AppStore , DOWNLOAD OR UPDATE ANY OF MY APPS , WHEN I GO FOR INSTALLING , THE MESSAGE SAYS: YOIR REQUEST IS NOT PROCESSED ,  ERROR CODE, 1009!!! HOW CAN I SOLVE THIS PROBLEM??

    Try contacting the iTunes support staff, they do the app store also, at:  http://www.apple.com/emea/support/itunes/contact.html

  • Failover not working while connecting to Oracle 11g database

    Hi,
    We have a J2EE application that connects to Oracle 11g database.
    The connection URL we are using is as below
    jdbc:oracle:thin:@(DESCRIPTION =(SDU=32768)(ADDRESS=(PROTOCOL=TCP)(HOST=abc.hostname.com)(PORT=1525))(ADDRESS=(PROTOCOL=TCP)(HOST= xyz.hostname.com)(PORT=1525))(CONNECT_DATA=(SERVICE_NAME=PQR)))
    The issue that we are facing is, the database failover is not working.The application only connects to the first host in the TNS entry.Evertime there is a failure in the connection to the first host,manual steps are required to swap the hosts.
    This started happening after we upgraded Oracle DB from 9i to 11g.
    We are using the client jar of 9i to connect to 11g. Could this be causing the problem?
    Thanks In Advance.
    -Tara

    889517 wrote:
    Yes, you are right. Nothing else was updated.
    The application still works as expected except the failover.If you are correct then I seriously doubt it has anything to do with java. It would be something to do with Oracle and/or network infrastructure.
    If not then it is some small problem with the driver. You can try updating the driver but I wouldn't expect a fix.

  • Forms 6i is not connecting with Oracle 11g database?

    Forms 6i is not connecting with Oracle 11g database?
    How to resolve this issue?

    Hi,
    Once you installed the Forms and Reports, you need to configure the paramters like tnsnames.ora in you path.
    There will be one folder in the Installation path of Forms and Reports search for tnsnames.ora file..and you need to Updated the file as per the which ORACLE Server you are connecting and then try.. it..
    Default path for forms will be "ORACLE_HOME/net80/admin".. search for tnsnames.ora and modify it..
    - Pavan Kumar N

  • Can not get connected to my WIFI, every time I get connected it take me to a blank screen, can not get connected to my WIFI, every time I get connected it take me to a blank screen

    can not get connected to my wifi, every time I get connected it take me to a blank screen

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
    http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    iOS 6 Wifi Problems/Fixes
    Wi-Fi Fix for iOS 6
    https://discussions.apple.com/thread/4823738?tstart=240
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Boost Your Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.h tm
    Troubleshooting a Weak Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Sig nal.htm
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    Wi-Fi or Bluetooth settings grayed out or dim
    http://support.apple.com/kb/TS1559
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

Maybe you are looking for