J2EE with JDeveloper and postgresql

Hi folks,
I'm creating a j2ee app (struts) with jdev with oracle9i
and this work fine...
but I have try connect with another database
(postgresql 7.4) to recovery some data
and the local container of jdev is not recognizing
the postgresql driver...
where I do to make the internal container
work with jdbc postgre driver ?

To configure the the PostgreSQL JDBC driver:
1. Select Tools>Preferences in JDeveloper.
2. In the Preferences frame, select the Database Connections node. Select Library New button.
3. Select the Registered JDBC Drivers field New button.
4. In the Driver Class field specify org.postgresql.Driver
5. Select Library field New button.
6. In the Create Library frame specify a Library Name, and add the PostgreSQL JDBC jar file pg74.215.jdbc2.jar to the Class Path field.
The PostgreSQL JDBC driver library gets added to the Preferences frame.

Similar Messages

  • HELP: include another page in with JDeveloper and ADF

    Hi all,
    I am trying to make a layout page with JDeveloper and ADF. But I just can't make things work. I have the pre-coded header and footer html pages and want to include them in a jspx somehow. I tried panelPage too, but the rendering style is away from our pre-coded header and footer.
    1. Use jsp:include.
    header works fine but footer is rendered before the page content, even if the footer is placed after the page content. Is there a way to customize the position?
    <f:facet name="footerFacet">
    <f:subview id="footerView"
    binding="#{backing_welcomePage.footerView}">
    <jsp:include page="/footer.jspf"/>
    </f:subview>
    </f:facet>
    2. Use frameBorderLayout.
    I followed the doc and use the document tag. But the frame page is rendered but none of included pages are rendered. So I got a blank page.
    <!-- frame page -->
    <f:view>
    <afh:html>
    <afh:head title="my frame page">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    </afh:head>
    <afh:body>
    <afh:frameBorderLayout height="100%" width="100%">
    <f:facet name="center">
    <afh:frame source="topPage.jspx" name="topPage3"/>
    </f:facet>
    <f:facet name="top">
    <afh:frame source="topPage.jspx" height="200" name="topPage2"/>
    </f:facet>
    <f:facet name="bottom">
    <afh:frame source="topPage.jspx" height="200" name="topPage1"/>
    </f:facet>
    </afh:frameBorderLayout>
    </afh:body>
    </afh:html>
    </f:view>
    <!-- top page -->
    <f:view>
    <af:document title="FrameBorderLayout Demo">
    <af:form>
    <af:panelGroup layout="vertical">
    <f:facet name="separator">
    <af:objectSeparator />
    </f:facet>
    <af:outputFormatted styleUsage="instruction" value="&lt;b>A frameBorderLayout&lt;/b>"/>
    </af:panelGroup>
    </af:form>
    </af:document>
    </f:view>

    for #1 have you tried throwing a verbatim tag around your includes like:
    <f:verbatim>
    <jsp:directive.include file="/includes/footer.jsp"/>
    </f:verbatim>
    it's how we got around intermixing html and jsf

  • Develope complex WebService with JDeveloper and deploy to tomcat

    Hello,
    I am thinking of developing a complex WebService with JDeveloper and deploy it to tomcat.
    The WebService should retrieve a few "normal" datatypes and a pdf and a few images. I try to store the pdf and the image in an Oracle DB as BLOB.
    My idea ist to create a Package which selects the values, pdf and the image and retrieve them as the output paramter.
    Then I want to create a WebService with the JDeveloper which calls this Package. This WebService should be published on a Tomcat.
    My first question is if that is possible?
    I think there are few problems.
    I searched the forum about deploying a JDeveloper WebService to Tomcat, but I can not find a whole solution which is going to work. I read something about JAX-RPC, but I am new to this topic. So it would be very nice, if anyone could tell me where I can find the solution or post a quick guide to solve that.
    Another question is how I have to decode the images and the pdf to provide those files in a WebService?
    I would be very glad if anyone can help me or tell me where I can find information about that, becaus I am new to this topic!
    Thank you,
    Tim

    Hi,
    does anybody have an idea about that?
    Thanks,
    Tim

  • Timesten with JDeveloper and ADF

    Hello,
    I'm using Timesten with Jdeveloper and ADF and have noticed some problems which I allready posted in the JDevloper Forum:
    Re: ADF TimesTen
    These problems arise from using Identifiers with reserved words, which is not forbidden with Ora DB.
    The settings in Jdev are to generate SQL92 conform code. This is the only way it works.
    I'm wondering if there is a setting to make TT behave syntactical 1:1 like a Ora DB.
    I even tried to change the Type Mode to Oracle and restarting TT but this doesn't help eighter.
    Maybe someone of the TT pro's has a solution for this? TT is used as a cache in front of an Ora DB so it should understand the Ora Syntax ??
    Thanks
    Ognian

    for #1 have you tried throwing a verbatim tag around your includes like:
    <f:verbatim>
    <jsp:directive.include file="/includes/footer.jsp"/>
    </f:verbatim>
    it's how we got around intermixing html and jsf

  • JDeveloper 10.1.2 with MySQL and PostgreSQL

    I'm testing JDeveloper 10.1.2 business components with mysql or postgresql because my company needs to connect also to these non-oracle DBs. ADF suits our developement needs, in speed and functionalities; anyway to make it our main developement system we need it to be compatible.
    I made three tests and they were all disappointing.
    At first, I installed MySQL 4.0 on my windows machine. I used the stable Connector/J 3.1
    and then MySQL Connector/J 3.0, but in both cases JDeveloper had a strange behaviour: I can make the connection, I can navigate correctly through all tables in the connection-navigator, I see all the column names etc... Anyway, as I try to build a "new Entity Object" from a table, there are no available table properties, like if the table had no columns.
    In this forum I only found documentation about rowid problems with mysql, but nothing about Entity Object wizard issues.
    Then I switched to PostgreSQL. I installed it locally, so I had to choose the 8.01 since I'm on a windows machine. JDBC driver: postgresql-8.0-310 jdbc3
    The developement test phase went ok, it is possible to use this DB just as if it was a Oracle, all the business components wizards works perfectly.
    The problem is at runtime, unfortunately. I built a simple datapage on the struts-config diagram and I dragged on it a "read-only table" from the data control palette.
    As I run the application, the embedded OC4J immediately returns this error:
    oracle.jbo.JboException: JBO-29000: JBO-29000: JBO-29000: JBO-26061: Errore durante lapertura della connessione JDBC.
    at oracle.jbo.JboException.<init>(JboException.java:343)
    (in english: Error during JDBC connection)
    There are no other available JDBC drivers for JVM 1.4x so I see no solution...
    I also tried to connect to an older PostgresSQL with its (older) JDBC but I get same the result.
    Anyone can help? Is it a JDev 10.1.2 issue?

    Hi Paolo.
    I'm also doing such tests.
    I did not ran into these problems because I created the busisness componentes using an Oracle connection first.
    After that, I switched the datatype of the table columns in the entity object to meet the SQL92 criteria ( like changing NUMBER(n) to INTEGER ).
    And then, I switched the connection to the postgreSQL or MySQL. This worked fine for me.
    But, the other big problem you will face is related to updating records using postgreSQL connection.
    Please see my post "Problem updating records using BC4J with foreign data sources" Problem updating records using BC4J with foreign data sources
    It would by fine if we help each other to solve this problems.
    Thanks
    Denis

  • WebDev Install with JDeveloper and WLS

    I'm familiar with the installation of a JDE WebDev Client and now I've been tasked with a JDeveloper 11.1.1.2 and WLS install. Is there any good guides on how to set this up?
    EnterpriseOne 811
    Tools 8.98.3.1
    Any help would be greatly appreciated.
    Thank you,
    Al

    Hi Al,
    Try this:
    https://support.us.oracle.com/oip/faces/secure/km/DocumentDisplay.jspx?id=1302209.1
    This doc explains what components you need to have on a E1 Client that will be used to build and deploy BSSV Packages to a Bus Services Server. The Combination of JDeveloper and WLS probably indicates that you are intending to setup a Bus Services Server. However, this is only supported as of 811SP1.
    If you are running 811SP1, the process of setting up a Bus Services Server involves:
    - defining a BSSV instance via Server Manager
    - setting up a E1 Client with JDeveloper that will be used to build and deploy a Business Services Package
    The following doc has useful links to the MTRs for Bus Services Server as well as other useful resources on BSSV.
    https://support.us.oracle.com/oip/faces/secure/km/DocumentDisplay.jspx?id=967281.1
    Edited by: user621397 on 15/04/2012 22:03
    Edited by: user621397 on 15/04/2012 22:04

  • ORA-29532: It Works with JDeveloper and fails under Database

    Hello,
    We have a web service client. It works fine under JDeveloper but when we upload it to the database and we excute a procedure calling it.
    Exception message
    "ORA-29532: llamada Java terminada por una excepción Java no resuelta: java.lang.Error: HTTPClient Internal Error: could not create instance of HTTPClient.RetryModule -
    java.lang.IllegalAccessException: The constructor HTTPClient/RetryModule is private"
    We use a procedure to call this simple java web service client. The code is:
    [Procedure CODE]
    as
    num number;
    begin
    num:=wssuma(4,6);
    DBMS_OUTPUT.PUT_LINE(num);
    end;
    The JDeveloper version is: 9.0.2.822 and the database one is: 9.2.0.5.
    Can anybody help us? We're newbies and this error is breaking the project.
    Thanks in advance

    It means the httpclient your client expects is not compatibl e with the one inside the database. What is your database version? If your database is 9i, you can generate and load webservice clients using the databse webservices callout utility posted at
    http://www.oracle.com/technology/sample_code/tech/java/jsp/dbwebservices.html

  • I am having trouble with php and postgresql on OS X 10.7.5

    I have php, postgresql 5.3.23, and apache installed.  However, when I go to my web browser and open the pages things don't work when I try to enter info in the search boxes.  I get this error immediately upon typing something in the search box.
    Fatal error: Call to undefined function pg_pconnect() in /www/Includes/file.php on line 12
    I have installed and configured the php.ini file to reflect extension=pcntl.so and extension=pgsql.so, restarted apache, and still no luck.  I have to be just missing some minor thing that is major in terms of workability.  Can anyone help?

    I have noticed that this error is being recorded in the Apache logs.
    Warning:  PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/pgsql.so' - dlopen(/opt/local/lib/php/extensions/pgsql.so, 9): Library not loaded: /usr/lib/libpq.5.dylib
      Referenced from: /opt/local/lib/php/extensions/pgsql.so
      Reason: image not found in Unknown on line 0
    This has got to be the "missing" piece of my puzzle, but I am having no luck finding what to do about it.  I have tried making a link to the libpq.5.3.dylib with no success.
    Anyone know what I'm doing wrong?

  • Problem with Jdeveloper and the Web Object Manager

    I am trying to register a servlet through the web object manager.
    As soon as click the web object manager menu pick I get the following
    error: Could not load servlet information from web server.
    On other peoples machines here it works fine and they can register
    servlets. What am I missing!

    hmmmm, wondering if I understood you correctly:
    first try the file association - right click on one of the movie files (you should tell as well with extension) then 'open with' menu then go to 'choose program' and then choose one of them and coach the box "always use the selected program to open this kind of file" in your example 'window media player'.
    the other point I understood is that in download directly into your browser, well there is a settin for this in the option, don't know where exactly, but you can avoid this by right clicking on the movie/file link and choose 'save target as ...' this forces it to download it on your disk and then you can open it.
    hope this kinda helps
    Cheers
    Slarti

  • Best practice: team based development with JDeveloper and CVS?

    Hi all!
    I was wondering of what is the best way to work with Jdev 9i and cvs on a same project with 5 developers whereas
    all developers use the same JPRs and JWS?
    Which of the files should be checked in to the central CVS repository, which should be remained on the local machine of each developer?
    I assume, all java and xml files might be stored in the cvs repository. But how can we make sure that new files written by a member of the team will be added to my project?
    If we also check in the JPR and CFG files the merge of concurrent JPRs will fail and our project will be shreddered ;-)
    My question: what is your best experience with simultanous development on same projects?
    Any idea?
    Many thanks,
    Stefan

    1. Put everything that your project needs under CVS control:
    - buildscripts
    - BC4J jarfiles
    - BC4J generated files (java, xml, xcfg, jpx, cpx)
    - .properties, package.html, gif, ...
    - docu
    - install scripts
    - starter batch or exec, ...
    2. Each developer should have a own JPR and JWS file. In a seperate location those files could be checked in frequently to easy allow the setup of a new Developer workstation
    3. Use a sourcecode formatter (e.g. jalopy) on the BC4J generated java files to reduce merge conflicts because of empty lines generated by JDev dialogs
    4. Adding new files is no problem:
    - if you add new BC4J objects (AM, VO, ASC, EO, VL) also checkin the bc4j package XML so new files will be added.
    - set in project settings common / input paths - "Scan source path ..."
    5. Deleting BC4J files is a problem, because JDev does not automatically remove them from the project. So if someone deletes BC4J objects, you should close the project and delete it manually from the jpr file
    6. Close the project before making a CVS update wih external tool like Tortoise because of JDev caches
    Regards, Markus

  • Webservices with Jdeveloper and Omni Porlet

    I am trying to make a portlet that can read xml from a webservice
    I first pull the webservice from the server....
    <env:Body xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <ns0:getPreviousChargesDataStringResponse xmlns:ns0="http://assessment/" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <return xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    &lt;rowset&gt;&lt;row&gt;&lt;Assessment_Group&gt; etc...
    </return>
    </ns0:getPreviousChargesDataStringResponse>
    </env:Body>
    then I use the xsl to make it in the <rowset><row> form.
    My xsl translation looks like this...
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <xsl:value-of select="." />
    </xsl:template>
    </xsl:stylesheet>
    my problem is my output comes out something like this
    &lt;rowset>
    &lt;row>
    &lt;Assessment_Group>A &lt;/Assessment_Group>
    The omni port wizard doesnt understand what the &lt means.
    How can I fix this?

    I have still not figured this one out. Any help please?
    Regards,
    Nithya

  • J2ee naming services with JDeveloper

    I am trying to use the JNDI services of the j2ee specs with JDeveloper and the Oracle Application server (9iAs). Doing this we have the problem that JDeveloper do not support the java.naming package. We have added the package to JDeveloper but we do not know ik Oracle 9iAs will work with this package added.
    Can someone give me some information about the use of JNDI within JDeveloper and Oracle 9iAs

    One solution to this problem is to make sure that the complex type you are using in yous service interface do implement the JAVA Bean as per the spec (at least Oracle's interpretation of it).
    You need to have getter/setter for all members and you need to have an empty ctor() to create new instances of your objects. In some cases, the design time let you get by, but the runtime fails in the code generation.
    In your case, the 'Task' class may have some issue.
    Hope it helps,
    -eric

  • J2ee naming services and Oracle 9iAS

    I am trying to use the JNDI services of the j2ee specs with JDeveloper and the Oracle Application server (9iAs). Doing this we have the problem that JDeveloper do not support the java.naming package. We have added the package to JDeveloper but we do not know ik Oracle 9iAs will work with this package added.
    Can someone give me some information about the use of JNDI within JDeveloper and Oracle 9iAs
    null

    I am trying to use the JNDI services of the j2ee specs with JDeveloper and the Oracle Application server (9iAs). Doing this we have the problem that JDeveloper do not support the java.naming package. We have added the package to JDeveloper but we do not know ik Oracle 9iAs will work with this package added.
    Can someone give me some information about the use of JNDI within JDeveloper and Oracle 9iAs
    null

  • Commons fileupload problem with Jdeveloper

    Hi,
    I tried to use commons fileupload with jdeveloper and I have put those two jar files under web-inf/lib directory. but it did not work. Anyone can help? Thanks in advance. Error code is shown below:
    Error(79,33): illegal start of expressionError: cannot access class org.apache.commons.fileupload.FileItem; file org\apache\commons\fileupload\FileItem.class not found
    Error: cannot access class org.apache.commons.fileupload.FileItemFactory ; file org\apache\commons\fileupload\FileItemFactory.class not found
    Error: cannot access class org.apache.commons.fileupload.FileUpload; file org\apache\commons\fileupload\FileUpload.class not found
    Error: cannot access class org.apache.commons.fileupload.disk.DiskFileItemFactory ; file org\apache\commons\fileupload\disk\DiskFileItemFactory.class not found
    Error: cannot access class org.apache.commons.fileupload.servlet.ServletFileUpload; file org\apache\commons\fileupload\servlet\ServletFileUpload.class not found
    Error: cannot access class org.apache.commons.fileupload.FileUploadBase; file org\apache\commons\fileupload\FileUploadBase.class not found
    Error: cannot access class org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException; fileorg\apache\commons\fileupload\FileUploadBase\SizeLimitExceededException.class not found
    Error(25,29): variable ServletFileUpload not found in class _upload
    Error(31,7): class DiskFileItemFactory not found in class _upload
    Error(31,41): class DiskFileItemFactory not found in class _upload
    Error(43,7): class ServletFileUpload not found in class _upload
    Error(43,38): class ServletFileUpload not found in class _upload
    Error(52,15): class SizeLimitExceededException not found in class _upload
    Error(61,7): class FileItem not found in class _upload
    Error(61,24): class FileItem not found in class _upload                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Are you sure you have the full JDK or just JRE?
    Check the size of the jar you downloaded to make sure it downloaded complete.
    Basic install instructions are here:
    http://download.oracle.com/docs/cd/E14571_01/install.1111/e13666/ojdig.htm#BDCJDDFE

  • JDeveloper and CVS and TeamWork

    Hi,
    we have a small team with 4 members and are developing in JDeveloper 10.1.2 with CVS plug-in (struts, toplink, jsp).
    We are beginners and are frustrated now: every commit/update causes problems.
    Always are problems with
    - project.jpr files (synchronization among developers)
    - sessions.xml (we cannot really add this file to cvs)
    - state of offline tables (and digrams) are sometimes wrong show: restart of JDeveloper is necessary
    - many JDevelopers files are unvisible, but must be added to cvs
    - and more and more
    Please - are somebody using JDeveloper & CVS in team with satisfaction? Are our problems beginner-problems or is this way wrong?
    Thanks for your experience.
    Jara

    My biggests issues with JDeveloper and CVS are as follows:
    1. Oracle puts out an article that talks about Version controllable XML and the biggest culprits of violators of this rule are the Oracle project files: StrutsPAgeFlow.oxd_struts, ViewController.jpr, and Model.jpr. Not nice when you can no longer open your Struts-config.xml file due to all the <==== lines in the file! In almost all instances, since we've built most of the files and aren't adding/removing much from the project as a whole, we can easily correct these problems then commit again, or just issue a clean update on them, and disregard (especially when it appears to be an ordering issue)
    2. Also, we've seen model.jpr files switch contents (areas look like they are swapped around) in between versions. Why? The files are identical except the position of the nodes.
    3. I really want to know my OUT-OF-SYNC files BEFORE I do an update. Kind of like the Uncommitted files window, I'd like: Hey, how out of sync am I?
    4. The COMPARE utility is very nice, however, once CVS takes over and does the automatic MERGE, you're really left with a mess (at times). Any time we get a "failure to update" message, we issue a compare against the current reposistory version verses version on disk and see what the differences are. Then we search for whether our stuff was merged properly.
    5. The only docs I've seen on Jdeveloper and CVS are "introductory" type documentation. Don't put out a document that talks about issues that are "out-of-scope" when these are the very issues that people need to deal with every day, and are looking for answers. The "oracle jdeveloper 10g" handbook is no better, offering about 4 pages of an "overview of CVS".
    6. People have asked before about CVS, even on Metalink and an answer from Oracle is to look at an OTN post. I'm sorry, but that really doesn't cut it, especially when your support bill is over $500K/year.
    enough rambling...
    CVS and Jdeveloper 10.1.2 are working at our shop with 3-4 developers on the project, but it can be paintful during the "conflicts during merge" times.

Maybe you are looking for