Servlets with Oracle 9i JDeveloper

To whom it may concern:
I am using JDeveloper to create a servlet. Previously, I have tested my code out vvia an application using Oracle 8.1.7
by adding an extra path to a JDeveloper project. However, when I try using the simple servlet that I built, it wants
to connect to the database using an Oracle 9i driver. Is there any way I can override the servlet's server to use
Oracle 8.1.7libraries?
Thanks for reading this and hopefully giving me an answer.
Jim Nalbandian
[email protected]

It's always advisable to use the latest JDBC driver available. These still connect fine to previous versions of the database.
However, if you want to use a JDBC driver other than the built-in driver, just go to your Project Properties dialog, click on the "Libraries" tab, create a named library like "Oracle JDBC 8.1.7" and add the JAR/ZIP files to the libraries list of archives.
Then, make sure that your "Oracle JDBC 8.1.7" library appears in the library list instead of "Oracle JDBC" (which will be the 9.0.2 JDBC driver that JDev9i ships.
Hopefully when running in the servlet environment this takes precedence over the one that's pre-installed into the OC4J 9.0.2 container.

Similar Messages

  • Pls give me example of Java Servlet with Oracle

    Hi Guys,
    I am new to Database connectivity of JAVA Servlet with Oracle.
    So can you give me one complete example of connecting Java Servlet with Oracle 9i database.
    [ i mean Select statement, Insert statement..]
    I have tomcat server which comes built-in with NetBeans IDE.
    I need this because, i always come accross messages saying that " you need to change classpath this way " , or " you need to write connection this way "....
    So to avoid all this wrong things..i need your help.
    You guys can reply me on [email protected]
    Thanks & Appreciate..
    Dal Hit

    I got succeeded!
    I changed the three point:
    * add 'package hoo;' in HelloBean.java
    * add '<%@ page import="my.HelloBean" %>' in hello3.jsp
    * change '<jsp:useBean id="hello" class="HelloBean">
    to '<jsp:useBean id="hello" class="my.HelloBean">
    Before posting, I searched google three times but couldn't get answer.
    I could not get well if you didn't give me help...
    Thank you very much.

  • -- Establishing contact with Oracle 8i & JDeveloper Teams

    Hi,
    We are a tool vendor (Quintessence Systems). We have developed a
    generalized, fully automated tool which generates 100% pure Java
    classes from stored PL/SQL (Packages, Procedures, Function etc)
    objects.
    The tool itself, written entirely in Java, parses and tokenizes
    PL/SQL objects then rapidly generates 100% pure Java. This
    provides existing Oracle customers with the ability to:
    - Continue developing in PL/SQL for as long as necessary
    transparently gain the benefits of a Java deployment of their
    business logic
    - Migrate their PL/SQL automatically to Java if required
    - Create EJBs from Stored Procedures in conjunction with
    JDeveloper and gain the benefits of distributed component based
    computing
    - Automatically deploy PL/SQL stored procedures in Java in an
    Oracle Application Server
    We would be very interested in developing close contacts within
    your group (at both technical and product manangement levels) as
    I believe this technology could become and important Internet,
    distributed computing and e-commerce enabler for your customers.
    Please advise me who you think would be useful people for us to
    contact by email at both a technical and product management
    level.
    I look forward to your reply. Please email me directly at
    [email protected]
    Thanks.
    Elton Barendse
    CEO
    Quintessence Systems
    null

    Hi Gloria,
    If you mean, "Will it work?" the answer is yes. Oracle9i JDeveloper should work with either the 8i or 9i versions of the database.
    Something in your question (perhaps it was that you mentioned you had a "free" copy of JDeveloper) makes me unsure whether this is what you were asking, however. If your question is "Is it legal?" then it depends on what you want to do with it. You're welcome to play around with JDeveloper and the database all you want; explore its features and evaluate it. However, if you want to deploy an application developed with JDeveloper in a commercial or other production setting, you do need to buy a license.
    Hope this helps,
    Avrom

  • HTTP Status 404 error- servlet with oracle db?

    I am working wit netbean 7.2 ide,oracle 10g. the servlet program does not connected to the oracle db. i always recieve a
    HTTP Status 404 -
    type Status report
    message
    descriptionThe requested resource () is not available.
    Oracle GlassFish Server 3.1.2.2
    error type. whats the problem? i think its due to connection problem. help me to resolve the problem. kindly give ur solution immediately...

    404 is resource not found so either the client making the request is using a wrong path or the resource did not successfully start at the expected path.
    You could check the server logs to see if there are errors that are causing this.

  • Exmpl of Servlet connect with ORacle

    Hi folks,
    Can anyone send me example of Java Servlet connectivity with Oracle.
    i m not able to connect servlet with oracle.
    u guys can reply me on [email protected]
    thanks
    dal hit

    No.
    The code for connecting to Oracle from a Servlet is no different from connecting to Oracle from any other Java application. So tell you what, you show us what you've tried and the error message(s) and we'll help you debug it.
    99.999% of the time it's a failure to put the driver Jar file into the classpath, the specifics of which vary from application server to application server. Which one are you using?
    u guys can reply me on [email protected]
    We can, but we won't. This is not your personal bugfixing service. Pay if you want that kind of help. If you want it for free, do it through the forums or go away.
    Probably you'll never read this response, but that's your problem not mine.

  • Help with Oracle connection

    Hi,
    I am new to the whole Java experience and am wading my way through servlets pretty well. However, I have run across a problem that I simply cannot connect the pieces of. I have a set of servlets that I am planning on deploying to a client. These servlets will connect to an Oracle database. Since the client connection url/user/password will not be the same as the values I am using in my development efforts, I don't want to set the values in my servlets, i.e:
    OracleConnectionPoolDataSource ocpds = new OracleConnectionPoolDataSource();
    ocpds.setURL("jdbc:oracle:thin:@databasename");
    ocpds.setUser("User");
    ocpds.setPassword("Password");
    // Create a pooled connection
    PooledConnection pc = ocpds.getPooledConnection();
    I have created my servlets using Oracle's JDeveloper, so I have a connections.xml file and a data-sources.xml file which contain the URL, userID and Password of the instance to connect to.
    Is there a way I can grab that information from the connections.xml file or the data-sources.xml file from within my servlet, so I don't have to give static values for the URL, userID and password within the servlet?
    Thanks for the help,
    -Pete

    Hi Pete,
    You can do either one of two solutions:
    (1) Your XML files idea is a good one. Read them in the servlet init method and hang onto the values.
    (2) You can create a JNDI DSN and use a pooled connection that's maintained by your servlet/JSP container. Here's how I do it with Tomcat 4.1:
    http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
    Maybe that will give you some ideas on how to accomplish the same thing using your container. - MOD

  • Urgent problem in connecting servlet and oracle

    Hi
    I have problem in connecting servlet with oracle.Kindly let me know what all the classes i should include in classpath to get connected.Where will i find the oracle driver.Kindly help me to do this.
    With regrds
    Vaiju

    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html
    http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96654/toc.htm
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/index.html

  • How to connect Servlet to Oracle

    so far i have see some example from internet on how to connect servlet with Oracle.. but i don't undertand the statement below
    "jdbc:oracle:thin:@elab-unix4.bus.umich.edu:1521:elab"
    can any expert please explain to me??
    what is @elab-unix4.bus.umich.edu ?? elab is database's name?

    so far i have see some example from internet on how to
    connect servlet with Oracle.. but i don't undertand
    the statement below
    "jdbc:oracle:thin:@elab-unix4.bus.umich.edu:1521:elab"
    can any expert please explain to me??
    what is @elab-unix4.bus.umich.edu ?? elab is
    database's name?jdbc:oracle: type driver
    thin: Type of driver again. Oracle distinguishes between thin/thick, but I'm not sure of the features. We use thin.
    :@elab-unix4.bus.umich.edu:1521:elab
    IP Address of box where db resides:@elab-unix4.bus.umich.edu, port:1521, db instance: elab.

  • Oracle's JDeveloper 11g IDE

    Has anyone else played around with Oracle's JDeveloper IDE? I just found it today and decided to give it a whirl to see what their software is like. I have to say that it's pretty pathetic. Here's what I noticed in the 10 minutes that I tried to use it:
    1) It's not intuitive at all.
    2) It's uber slow. And it's not my machine. I'm on a pretty beefy lenovo (4GB RAM, Intel dual core 2.16GHz) running Ubuntu. (Speaking of beefy lenovos, my dream machine is shipping tomorrow: Lenovo Thinkpad w500, 8GB RAM, dual core 3.04GHz ... blah blah blah)
    3) The default color scheme just hurts your eyes. It's like that nasty blue default Windows XP theme ... remember that? Everything is a really weird off-colored blue.
    4) Creating a project takes a long time. What kind of project, what technologies would you like to use (you actually have to select java and add it to the "used technologies" list). I found it interesting that one of the listed technologies was: "SOA." <-- WTF?!?! (Methinks Oracle is less technology-oriented and much more business-oriented.)
    5) It tries to be like Eclipse, but fails pretty miserably. (perhaps it's even based on Eclipse - I don't know. I've used NetBeans for most of my development and have only recently (last week or so) played with Eclipse to amount to anything.) My previous experience with eclipse has been bad to fair at best, but JDeveloper - on a scale of 0 to 10, 10 being usable 0 being horrible - would receive a -22.
    6) Did I mention that it's terribly slow? And to compound the issue, you have to go through an eight-step wizard just to start a simple "hello world" Java project. (I only wish that I were kidding.)
    7) Right-clicking on the default package and navigating to the <new> menu, you don't get the options you'd expect. Instead, it's something sort-of like eclipse, but not as robust. They've taken the Microsoft: "I know better than you what you do and don't want to do in this project." I.e., you can't just add an empty java file. You have to go through their add-class/add-interface/add-enum wizard (which also seems to be based (at least partially) on eclipse.)
    8) The interface is really busy and cluttered. It's very difficult to try to focus on something. They have way too much going on. (Yeah, that's likely configurable.) I thought that eclipse was bad, but this is eclipse X 50. Seriously. They have dozens of tabs, status windows, toolbars, toolkits, toolboxes, project and solution explorers, tips and tricks, debuggers, profilers, etc. windows everywhere.
    9) This should perhaps be 8b. Like I said - they have way too much going on. I like a simple, bare-bones IDE. Let me add in the extra shiit when and where I want.
    10) It's sllooooowwwwww NetBeans isn't the quickest tool out there, but I've never been negatively effected by its speed. (And, as I said, I've only recently begun to play with Eclipse and it is by no means slow.)
    When I had initially heard about Oracle buying Sun, I was very pleased. I knew they had a good business reputation, but hadn't heard much about their technology reputation. I had heard some really good things about Oracle DB, so I figured that - in general - they were pretty solid technically. Perhaps they are, but after having played with this piece of junk and having read about the Oracle OpenWhatever conference - where the primary goal was to sell the technically inept business weenies on their products - I'm starting to have some really serious doubts. Companies that throw around meaningless buzzwords to technical people make me sick (and in this case worry me just a tad).
    Anyone else worked with some of Oracle's products (preferably Java products)? Is this feeling in the pit of my stomach justified (or should I not have eaten that bean burrito for lunch)?

    BalusC wrote:
    You want an IDE? You want a free one? Go for Eclipse. You want to pay? Go for IntelliJ IDEA.Not looking for an IDE - I already use NetBeans and am quite please with it. (Also note that I do 0 (as in absolutely none) web development.) I've been tinkering with Eclipse the past few days (I try once every couple of months to see if I can convince myself to like it) and it's catching on a bit more this time than other times. We'll see how it plays out.
    >
    As to Oracle products, I've ever tried JDeveloper a couple of years ago and like Netbeans I threw it away after some minutes of trying. It was in no way better than Eclipse for webdevelopment.From my limited experience, I'd say that eclipse is significantly better.
    I've taken a quick glance at their ADF JSF component library, but I didn't have the feeling that it was any better than the Sun standard implementation.No better, but any worse?
    I've read a lot about Oracle DB server and have at times the chance to play with it. It is certainly a robust database, but I have too often create a friggin trigger or a stored procedure for it while other RDBMS'es have builtin functions for that (autoincrement PK, limit/offset of results, insert-or-update query, etcetera).That's really interesting. I've half a mind to download their free, tinker database just to see what all the fuss is about. I've only really worked with two DB servers: MS SQL Server and MySql, the former being significantly better in my opinion.
    >
    No, I don't like Oracle. It's only their marketing team which is top.The more I look into them and read about their history and see what technical people have to say about their products, the more uneasy I am becoming. I haven't written them off yet, though. What Sun products needed was marketing, which is something that Oracle is very obviously good at. If you can combine the quality of Sun engineering with Oracle's marketing abilities, I think you may very well have an unbeatable combination. The nagging question for me at this point is how much of an influence Oracle is going to have on the technical and engineering aspects of Sun.

  • Problems in running the servlet in Oracle JDeveloper

    I have problems in running servlets(http servlet) in oracle jDeveloper.
    Heres the code
    package view;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Servlet1 extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException, IOException {response.setContentType(CONTENT_TYPE);
    PrintWriter out = response.getWriter();
    out.println("<html>");
    out.println("<head><title>Servlet1</title></head>");
    out.println("<body>");
    out.println("<p>The servlet has received a GET. This is the reply.</p>");
    out.println("</body></html>");
    out.close();
    When Im about to run this code in the IDE it throws a fatal error
    Error initializing server: At least one valid code-source or import-shared-library element is required for shared-library "global.libraries" in /D:/jdevstudio10132/jdev/system/oracle.j2ee.10.1.3.40.66/embedded-oc4j/config/server.xml.
    07/09/12 21:37:43 Fatal error: server exiting
    does anyone know here whats the problem???

    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Servlet1 extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {response.setContentType(CONTENT_TYPE);
    PrintWriter out = response.getWriter(); out.println("<html>"); out.println("<head><title>Servlet1</title></head>");
    out.println("<body>");
    out.println("
    The servlet has received a GET. This is the reply.
    "); out.println("</body></html>");
    out.close();
    When Im about to run this code in the IDE it throws a fatal error Error initializing server: At least one valid code-source or import-shared-library element is required for shared-library "global.libraries" in /D:/jdevstudio10132/jdev/system/oracle.j2ee.10.1.3.40.66/embedded-oc4j/config/server.xml. 07/09/12 21:37:43
    Fatal error: server exiting does anyone know here whats the problem???

  • Using JDeveloper with Oracle 10g Express Edition

    Hi,
    can JDeveloper 11g 11.1.1.4.0 Studio Edition be used to develop applications connection with Oracle 10g Express Edition?
    If not, is there a version downloadable that can?
    TIA

    Yes, it can.
    John

  • Correct version of jdeveloper to use with Oracle App Server 10g 10.1.2.0.2

    Hi,
    I just want to be sure, I am new to JDeveloper and I would just like to verify/ask what correct version of JDeveloper should we use so we could deploy the finished applications on our Oracle Application Server 10g 10.1.2.0.2 without errors?
    Looking at this support matrix: http://www.oracle.com/technology/products/jdev/htdocs/11/as_supportmatrix.html#1013
    I think we can use JDeveloper 10g (10.1.2)?
    I downloaded Jdeveloper 10.1.2 from this link: http://www.oracle.com/technology/software/products/jdev/htdocs/soft10g.html.
    Will this work well with Oracle Application Server 10g 10.1.2.0.2?
    Thank you very much,
    Mickey
    Edited by: [email protected] on Aug 13, 2009 2:20 AM

    Yes, it works well.
    --olaf                                                                                                                                                                                                                                       

  • I want to know whats the release of jdeveloper compatible with  Oracle E-Business Suite 12.1.3

    i want to know whats the release of jdeveloper compatible with  Oracle E-Business Suite 12.1.3

    You can find this information on the Oracle Support site. It is the article with the ID 416708.1

  • I want to know whats the release of jdeveloper certified with  Oracle E-Business Suite 12.1.3

    i want to know whats the release of jdeveloper certified with  Oracle E-Business Suite 12.1.3
    https://forums.oracle.com/thread/2583919

    Pl see MOS Doc 416708.1 as indicated in your other thread
    HTH
    Srini

  • Getting error while configuring WAS 7 Fix Pack 37 with Oracle Application Development Framework (Oracle JDeveloper 11.1.1.7.0)

    Hi,
    I have installed Oracle Unified Directory 11.1.2.2.0 and WebSphere Application Server 7 with Fix Pack 37.
    I am getting error while configuring WAS 7 Fix Pack 37 (7.0.0.37) with Oracle Application Development Framework (Oracle JDeveloper 11.1.1.7.0). While adding products to cell (Oracle Directory Services Manager for WebSphere - 11.1.2.2.0), I am getting below error:
    CFGFWK-64069: The following prerequisites were found to be missing: Oracle WebCenter Composer Extension - 11.1.1.0
    Also attached the screenshot of the error.
    Please help.
    Thanks,
    Himanshu Verma

    Hello,
    ODSM has the following dependencies apart from ADF (both components depend also on ADF):
    - UIShell (oracle.idm.uishell.war)
    - Webcenter Composer (oracle.webcenter.composer.war).
    Apparently the composer is missing.
    Important points to check when using ODSM with WAS:
    - To install and configure Oracle Fusion Middleware with IBM WebSphere, you must first install (but not configure) IBM WebSphere
    - You must install the Oracle Application Development Framework as the same user who installed Oracle Unified Directory.
    - appdev must be installed under the same ORACLE_HOME as OUD
    Sylvain
    Please mark this response as correct or helpful when appropriate to make it easier for others to find it

Maybe you are looking for

  • Error in Integration repository

    Hi        I craeted a namespace under the SWCV.After creating the namespace i looked at the data types. There will be 2 default data types ExchangeFaultData and ExchangeLogData under that.Both are inactive and when i try to activate them i am not abl

  • Artwork missing... Leopard? or new iMac problem?

    Hi, I recently moved all of my music to my new iMac. Then I discovered that not all of my artwork moved over. Many of the albums that had artwork no longer have it. What's even more strange is that my iPod and iPhone have some of the missing artwork,

  • Can i change from pay as you go to contract

    Yes, you would need to either ring EE or call into your nearest EE store to do this.  You would also be able to keep your same number.

  • Individual podcast settings don't work

    I have some podcasts set to keep the last 10 episodes and others set to keep all episodes. iTunes is still keeping all episodes. Ideas???

  • Cs1 drawings don't open properly in cs4?

    Drawings I made in cs1 won't open properly in cs4? I just get a message which says the program can't read this illustration and then I have only parts of the image. They still work in cs1 normally. The problematic parts of the image had a gaussian bl