Correct URL in JDBC

I have installed Oracle8i Personal Edition on Windows 98. I have installed the standard database also. Now I'm writing servlets which use JDBC connection. It seems that the "getConnection" method doesn't work:
Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@127.0.0.1:1521:ORCL","scott", "tiger");
Can someone suggest what should be used after the "@" sign? I notice what when I enter SQLPLUS, I don't have to use any TNS alias, just "connect scott/tiger" is enough. So should I omit all those database connection?
Regards,
Derek.

Please make sure that the listener is started for your database.

Similar Messages

  • Just started MobileMe.  Struggled with the setup of iCal but eventually got everything working fine for about a day.  Then I started receiving an iCal error message stating that the URL was wrong.  Of course, sync no longer works.  What is correct URL?

    Just signed up for MobileMe.  Had a little difficulty setting up iCal but eventually got everything working.  Whether posting to iCal on my Mac Book or iPhone, sync seemed to be working fine for about a day.  Then suddenly when I opened iCal on my Mac Book, I would receive the following iCal error message:
    "The calendar https://cal.me.com/calendar/calendar/principals/users/1.1117025442/ was not found on the server. Make sure the URL is correct."  I know where it is located but because I did not enter the URL when I set up MobileMe/iCal, I don't know what the correct URL should be.

    Mike,
    Welcome to Apple Support Communites.
    Review; MobileMe: Setting up iCal for the new MobileMe Calendar, and post back with further questions.

  • Get "404 Not Found" after deployment.  How to find out correct URL?

    To the experienced:
    In preparing to deploy my application, I am using JDeveloper 10.1.3.4 to deploy the application to the standalone oc4j server that is included in JDeveloper. After the deployment, I get the "404 Not Found" error when trying to invoke the application in a browser. The deployment looks OK, becasue the log window in JDeveloper showed no error when running deployment from inside JDeveloper. Therefore I guess the question is how to find out the correct URL to invoke the application. The steps I took in doing the deployment are as follows.
    I first installed the standalone oc4j by running the <jdev_home>\jdev\bin\start_oc4j .bat file. The installation is OK because I deployed the SRTutorial applcation and invoked it in a browser successfully.
    The WAR file was created by right-clicking the ViewController project and select to create a WAR file. To the application's Context Root its own name, I typed "ZB" in the box for the context root.
    Then in ViewController -> Resources, right_click the deployment file (ZBOV.deploy) and chose "Deploy to" the local_standalone_oc4j. The messages in JDeveloper's log window for the deployment are all clean without errors.
    I then used this url to invoke the deployed application in a browser:
    http://localhost:8888/ZB/faces/staff/login.jspx
    But I got an "404 Not Found" error. Right away I tried invoking the SRTutorial application, and it runs fine.
    login.jspx is one of the pages for the appllication. In the application navigator, it is located with other files in the ViewController/Web Content/staff folder, therefore I used /staff/login.jspx after ZB/faces.
    What could be wrong? If the deployment is actually successful, how to find out the correct url to invoke the application?
    Many thanks for your help!
    Newman

    Hi, Arun,
    Thank you for the suggestion. I tried it but got the same error.
    I tried it by first undeploying the application using the enterprise manager page (which is also part of the oc4j included in JDeveloper). I select the application and clicked the undeploy link, confirmed that I wanted to remove it. And it was removed.
    Then in JDeveloper, I right-clicked the ViewController, and in the properties of the probject selected "J2EE Application" and then selected "Use Custom Settings", then in the "J2EE Web Context Root" box I entered "ZB". Created the deployment profile again, overwriting the existing one, and then right-clicked the ZB.deploy node to deploy to the standalone oc4j on the localhost. And I used the url:
    http://localhost:8888/ZB/faces/staff/login.jspx
    And I got the same "404 Not Found" error.
    There was no error at the time of deployment using the ZB.deploy profile. On the enterprise manager page, the path of the deployed application is given as /C:/jdev10134/j2ee/home/applications/ZB.ear, and the folder of the deployed application is there. Question is: if the deployment is actually OK, can the correct URL be found in some file somewhere in the folder?
    All ideas and suggestions are very much appreciated!
    Newman

  • Res.getPathTranslated() does not return correct URL of the page requested

    Hi,
    The res.getPathTranslated() statement in the below code (in doFilter method) does not return the correct URL of the requested webpage.
    Whenever a web page is accessed using a return statement (eg : return "nextPage"; ) inside a button's action method or a hyperlink's action method, the res.getPathTranslated() returns the URL of the current webpage instead of returning the URL of the webpage that is actually requested.
    For example if there is a button on the page http://localhost:29080/MyJaas/faces/firstPage.jsp
    And the button_action() is as follows
    button_action()
    return "nextPage";
    The res.getPageTranslaged() returns "http://localhost:29080/MyJaas/faces/firstPage.jsp" instead of "http://localhost:29080/MyJaas/faces/nextPage.jsp"
    However, if the webpage is requested by populating the URL property of the hyerlink in creator IDE, the res.getPathTranslated() returns the correct (requested) web page.
    How to make res.getPathTranslagted() return the correct URL when the webpage is accessed from hyperlink's / button's action method?
    I know that the explation is not very clear, so please bear with me. Let me know if you need more clarificatons. Thanks in advance for showing interest in this issue.
    And by the way, the code below is the same as that used in Jaas Authentication tutorial :- http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/jaas_authentication.html
    package jaasauthentication;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.http.HttpSession;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class SecurityFilter implements Filter{
        /** Creates a new instance of SecurityFilter */
        private final static String FILTER_APPLIED = "_security_filter_applied";
        public SecurityFilter() {
        public void init(FilterConfig filterConfig) {
        public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws java.io.IOException, ServletException{
            HttpServletRequest req = (HttpServletRequest)request;
            HttpServletResponse res = (HttpServletResponse)response;
            HttpSession session = req.getSession();
            String requestedPage = req.getPathTranslated();
            String user=null;
            //We dont want to filter certain pages which include the Login.jsp/Register.jsp/Help.jsp
            if(request.getAttribute(FILTER_APPLIED) == null) {
                //check if the page requested is the login page or register page
                if((!requestedPage.endsWith("Login.jsp")) && (!requestedPage.endsWith("Register.jsp")) && (!requestedPage.endsWith("Help.jsp"))){
                    //Requested page is not login.jsp or register.jsp therefore check for user logged in..
                    //set the FILTER_APPLIED attribute to true
                    request.setAttribute(FILTER_APPLIED, Boolean.TRUE);
                    //Check that the session bean is not null and get the session bean property username.
                    if(((jaasauthentication.SessionBean1)session.getAttribute("SessionBean1"))!=null) {
                        user = ((jaasauthentication.SessionBean1)session.getAttribute("SessionBean1")).getUsername();
                    if((user==null)||(user.equals(""))) {
                        res.sendRedirect("Login.jsp");
                        return;
            //deliver request to next filter
            chain.doFilter(request, response);
        public void destroy(){
    }

    Guys any solution for the above problem?
    Right answer fetches 10 duke dollars..

  • After deployment got "404 Not Found".  How to find the correct URL?

    To the experienced:
    In preparing to deploy my application, I am using JDeveloper 10.1.3.4 to deploy the application to the standalone oc4j server that is included in JDeveloper. After the deployment, I get the "404 Not Found" error when trying to invoke the application in a browser. The deployment looks OK, becasue the log window in JDeveloper showed no error when running deployment from inside JDeveloper. Therefore I guess the question is how to find out the correct URL to invoke the application. The steps I took in doing the deployment are as follows.
    I first installed the standalone oc4j by running the <jdev_home>\jdev\bin\start_oc4j .bat file. The installation is OK because I deployed the SRTutorial applcation and invoked it in a browser successfully.
    The WAR file was created by right-clicking the ViewController project and select to create a WAR file. To the application's Context Root its own name, I typed "ZB" in the box for the context root.
    Then in ViewController -> Resources, right_click the deployment file (ZBOV.deploy) and chose "Deploy to" the local_standalone_oc4j. The messages in JDeveloper's log window for the deployment are all clean without errors.
    I then used this url to invoke the deployed application in a browser:
    http://localhost:8888/ZB/faces/staff/login.jspx
    But I got an "404 Not Found" error. Right away I tried invoking the SRTutorial application, and it runs fine.
    login.jspx is one of the pages for the appllication. In the application navigator, it is located with other files in the ViewController/Web Content/staff folder, therefore I used /staff/login.jspx after ZB/faces.
    What could be wrong? If the deployment is actually successful, how to find out the correct url to invoke the application?
    Many thanks for your help!
    Newman

    Hi, Arun,
    Thank you for the suggestion. I tried it but got the same error.
    I tried it by first undeploying the application using the enterprise manager page (which is also part of the oc4j included in JDeveloper). I select the application and clicked the undeploy link, confirmed that I wanted to remove it. And it was removed.
    Then in JDeveloper, I right-clicked the ViewController, and in the properties of the probject selected "J2EE Application" and then selected "Use Custom Settings", then in the "J2EE Web Context Root" box I entered "ZB". Created the deployment profile again, overwriting the existing one, and then right-clicked the ZB.deploy node to deploy to the standalone oc4j on the localhost. And I used the url:
    http://localhost:8888/ZB/faces/staff/login.jspx
    And I got the same "404 Not Found" error.
    There was no error at the time of deployment using the ZB.deploy profile. On the enterprise manager page, the path of the deployed application is given as /C:/jdev10134/j2ee/home/applications/ZB.ear, and the folder of the deployed application is there. Question is: if the deployment is actually OK, can the correct URL be found in some file somewhere in the folder?
    All ideas and suggestions are very much appreciated!
    Newman

  • Paypal URL redirects but adds in the word amp after the &. How to get Muse to redirect to the correct URL

    Hi there. I have used the paypal email URL in my form submit buttons, but when testing them live, the URL changes and adds in the word amp after the &:  https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KZUPJMDWGTUNY.  It’s in my Adobe Muse form as this:  https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KZUPJMDWGTUNY. How do I get Muse to redirect to the correct URL?

    When I pasted the link in the first post it took out the &amp so I'll retype what Muse is doing ... it's changing he URL to ... https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=KZUPJMDWGTUNY which brings up an error page.

  • I have all sync info, but am unable to provide a correct URL, need help

    ''locking as a duplicate - https://support.mozilla.com/en-US/questions/883952?s=&r=0&as=s''
    I have managed to download Firefox on my iphone, I also have correct sync key, but when logging into mozilla I cannot seem to get the correct URL server. Ive tried everything I know but all seem wrong. Am I misunderstanding whats required here. My web server is provided by O2-uk.

    Hi there kanman58,
    Try downloading and running the print and scan doctor located here:
    http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c03275041&cc=us&dlc=en&lc=en
    It can fix a lot on its own and if not give a better idea of what is going on.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Admin api - correct url syntax to getUsers for an event instance.

    I'm trying to use the admin api to call the function getUsers() and I'm not sure of the correct URL syntax. I want to return the number of users currently connected to an event instance. Could someone provide an example of what the URL connection string would look like?
    I tried the following syntax
    http://localhost:1111/admin/getUsers?auser=USER&apswd=PASSWORD&appInst=livepkgr/_definst_/ myEvent
    but it returns this error message.
    <?xml version="1.0" encoding="UTF-8"?>
    -<result>
    <level>error</level>
    <code>NetConnection.Admin.CommandFailed</code>
    <timestamp>10/26/2012 8:06:23 AM</timestamp>
    </result>
    >>>>>>>>>>>>>>>>>>>>>>>>
    I can successfully use the ping command: http://localhost:1111/admin/ping?auser=USER&apswd=PASSWORD
    <?xml version="1.0" encoding="UTF-8"?>
    -<result>
    <level>status</level>
    <code>NetConnection.Call.Success</code>
    <timestamp>10/26/2012 8:12:51 AM</timestamp>
    </result>
    In my FMS.ini file I do have  USERS.HTTPCOMMAND_ALLOW = true
    In my USERS.xml file I have
    <HTTPCommands>
                <Enable>${USERS.HTTPCOMMAND_ALLOW}</Enable>
                <Allow>ping,getUsers,getUserStats,getServerStats</Allow>
                <Deny></Deny>
                <Order>Deny,Allow</Order>
    </HTTPCommands>
    Thanks!

    I found the problem. I wasn't putting quotes around the application/instance name value.
    http://localhost:1111/admin/getUsers?auser=USER&apswd=PASSWORD&appInst ="livepkgr/_definst_""
    Did the trick. Question though will this identify the number of client connections over http in addition to rtmp?
    Thanks Again!

  • Firefox website shortcuts only open to my homepage instead of the correct URL

    so i have a windows 8 laptop that i had installed firefox on. i have a few shortcuts to websites like youtube, facebook ect. However when ever i open them it just opens up to my homepage which is "google.com" instead of the correct URL.
    The same issue occurs with any other browser like IE but im going to be using firefox that's why i asked on this forum.
    the computer im asking the question on is not the computer that im having the issues on.

    Does this only happen when Firefox isn't running or also when you already have a Firefox window open?
    Make sure that Firefox is set correctly as the default browser.
    *https://support.mozilla.org/kb/How+to+make+Firefox+the+default+browser
    *https://support.mozilla.org/kb/Setting+Firefox+as+the+default+browser+does+not+work
    *http://kb.mozillazine.org/Default_browser
    You can check for problems with DDE.
    *http://kb.mozillazine.org/Windows_error_opening_Internet_shortcut_or_local_HTML_file_-_Firefox

  • What is the correct URL to connect to my Sqlbase DB

    I have a simple little application that is attempting to connect to a Sqlbase DB on my Windows 95 PC. The Java2 SDK version 1.3.01_01 is installed on my C:\ drive as well as the Sqlbase driver and my class file. The Sqlbase DB is on the D:\ partition of my hard drive. At first, I was having problems loading the driver using Class.forName, but that seems to be OK now (after fixing my classpath setting.) I am now getting the following error when running the program:
    SQLException: SqlbaseSession(): failure to connect to host:
    I assume the problem is with my URL string, but I'm not sure what the string should be. The database name is "EPDMO" and I can log on to it through SqlTalk using "connect EPDMO SYSADM/SYSADM". Any suggestions are appreciated.

    Correction:
    The error message is:
    SQLException: SqlbaseSession(): failure in connection to host!
    I get the following message if I put anything other than "localhost" in the URL:
    SQLException: SqlbaseSession(): failure to connect to host:

  • IWeb09 RSS Feed Button not providing the correct URL

    I use iWeb 3.0.1 and MobileMe to host my own domain. However, I want to add a Blog with RSS feed. When I insert the RSS Feed button it creates a link to http://www.<domain>/username>/Blog/rss.xml. This doesn't work in RSS readers since the path is not valid.
    However, if I manually edit my RSS reader to point to http://web.me.com/<domain>/<username>/Blog/rss.xml it correctly finds the RSS XML file indicating that the Blog pages are being published correctly.
    Is there a bug in iWeb or have I not configured something properly? I can't find a way to manually edit the RSS feed button.

    Your domain uses URL forwarding with masking. It has no meaning for links. It's just cosmetics.
    This is the webpage that counts :
    http://web.me.com/philipksmith/philipksmith/Blog/Blog.html
    The blue RSS button is the wrong one.
    !http://www.wyodor.net/_Discussions/WrongRSSButton.png!
    Why not enable personal domain and use your domainname properly.
    To use your domainname, follow the instructions in your MobileMe account where you setup Personal Domain:
    https://secure.me.com/account/
    Where you'll find a link to [iWeb: Using your own domain name|http://support.apple.com/kb/HT1107]
    Or read it in the [MobileMe help|http://help.apple.com/mac/1/help> : Account > Setting up a Personal Domain
    You can have only one domainame with Personal Domain at MobileMe. To use the other one you have to enable URL forwarding where you host your domainname.

  • Dynamic url and jdbc for entity class

    Hi all,...
    I want to create a data aware program by using netbeans 6.0.
    So that open a contextual menu in projects section, and simply add a new 'Master/Detail Sample Form'.
    The IDE than ask me about the connection (jdbc driver, url etc) and table name I will use in the form.
    It's work as expected.
    But, the jdbc configuration can't be changed anymore, it's fixedly saved in persistence.xml.
    That's the problem. I want to make an application that can connect to differences database (with same structure), so that my program can use oracle, mysql or others as user wish (The user should fill the jdbc connection property whenever the program executed).
    How's the solution? should I back to primitive jdbc connection by using 'Statement'?
    Thanks in advance

    JNDI is a naming service used when you are deployed (typically) in a J2EE container such as Tomcat or JBoss. Your application is desktop right now, but you mention that you want to deploy it on your intranet? My guess is that you mean right now your database is on your machine, and you are connecting to that via localhost, and that the application will remain a desktop one.
    Where you put the database should not be an issue. If you can see the machine on your network, you should be able to connect with JDBC. Simply substitute the IP or host name where the database resides. I did a quick look at Hibernate's documentation, and it appears you can configure the data sources used for their flavor of JPA dynamically.
    There is an example of how to programatically create an Entity Manager in Sec 2.2 of this page http://docs.jboss.org/hibernate/stable/entitymanager/reference/en/html_single/#setup-configuration.
    - Saish

  • How do build URL in jdbc connection?

    I am doing one program in java.
    I created a database in Microsoft sql server 2005.
    In jdbc connection ,They need a URL but i don't know how do build a URL....
    so ,please give the source code for build a URL...
    and also give one example for jdbc connection using MSsql server 2005...

    Arun02006 wrote:
    I am doing one program in java.
    I created a database in Microsoft sql server 2005.
    In jdbc connection ,They need a URL but i don't know how do build a URL....You don't "build" a URL; it's just a String with a required content.
    so ,please give the source code for build a URL...Look in the docs for your JDBC driver.
    and also give one example for jdbc connection using MSsql server 2005...http://www.exampledepot.com/egs/java.sql/ConnectSqlServer.html
    %

  • SCCM Client Report Tool not opening up correct URL to Report Server

    I recently install the SCCM 2012 right click tools and within the downloaded zip file there is SCCMClientToolsSetup2012.exe which adds a whole bunch of additional features when right clicking devices in the console. The problem is no matter what I put as
    the Report Server while doing the install, it never opens the reports for the device... It gives me the following error:
    Server Error in '/ReportServer' Application.
    The resource cannot be found.
    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it
    is spelled correctly.
    Requested URL: /ReportServer/Pages/ReportViewer.aspx
    I have changed the report server virtual directory to match ReportServer from the default, but it still does not open the reports... Any idea what could I might be wrong?
    I have the console and right click tools installed on my Windows 7 workstation. the Server is Windows 2012 Datacenter with SQL 2012 and SCCM 2012 R2.
    Thanks!
    Tony

    Yes, it appears to work directly from the console and via web... But it does show Report.aspx vs. ReportViewer.aspx.
    Hi,
    Did you open reports from Web Service URL in Reporting Services Configuration Manager?
    Best Regards,
    Joyce Li
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • No receiver determination found in spite of correct url

    Hi everybody,
    our partner tries to reach our XI on https adapter to start a synchronous process. The url is as follows:
    <u>https://[host]:[port]/sap/xi/adapter_plain?party=[PARTY]&service=[SERVICE]&interface=[INTERFACE]&namespace=[NAMESPACE]</u>
    I can see the message in the TA: sxmb_moni but there is always the error: No receiver determination found. But everything is correct. There IS a valid receiver determination set up. Are there any other parameters that have to be put into the url to get that connection online?
    Regards.
    Oliver.

    Yes please...the reason i am asking you try this is that in the comments of the HTTP inbound handler...you see what is below....so i am asking you to put the parameters that seems to be mandatory from this...
    call-syntax:  XI 3
    http://hostname:port/path
                         ?namespace=???
                         &interface=???
                         &service=???
                         &party=???
                         &agency=???
                         &scheme=???
                         [&qos= EO|BE|EOIO]
                         [&msgguid=???]
                         [&queueid=???]
                         [&trace=[1|2|3]]
    Thanks,
    Renjith

Maybe you are looking for

  • Transfer posting using MM and SD

    Hi people, In the transfer postings using MM and SD, we have the following steps: Create the PO type UB Create the delivery document using VL10B Create MIGO and J1B1N using VL02N I would like to know about the information of tab "Value with taxes" of

  • Itunes error report windows 7 after upgrade

    Description A problem caused this program to stop interacting with Windows. Faulting Application Path: C:\Program Files (x86)\iTunes\iTunes.exe Problem signature Problem Event Name: AppHangB1 Application Name: iTunes.exe Application Version: 10.6.0.4

  • Uploading photo album from iphoto library

    New at Mac. I have 2 thousands photos on my Mac. I have created many albums for these on Iphoto. When I want to upload these albums , i do not have access to my iphoto library . Instead i get the library where the photos have been downloaded by the h

  • Unable to access Edge Reflow through ACC

    When I login to ACC, I can see the edge section and Reflow.  When I select Reflow, I am directed to the download page, however Reflow is not listed at all within the Edge section.  Is it the version of ACC I have?  There isn't even an option to add a

  • Undeployment poor performance

    Hi, JDevoloper has poor performance when deploying und undeploying a application. Below is a example: 3 minutes! Maybe it's caused by the BEA-000449 messages? How can I avoid this messages and how can I speed up deployment and esp Any suggestions? St