Trying to get MySQL to work with Oracle Tutorial

Hi,
I was attempting to work through the following tutorial Build a Web Application with JDeveloper 11g Using EJB, JPA, and JavaServer Faces
http://www.oracle.com/technology/obe/obe11jdev/11/ejb/ejb.html
But with a twist that I want to attempt with MySQL. Whilst MySQL is working fine in the IDE when I test the javaServiceFacade it fails as the construct/syntax of the sql command is incorrect :-
SELECT rowid, contractno, fax, advert, status, remark, tel, kva, lastuser, createddate, type, postcode, contact, country, modified, refno, address, email, custname FROM "enquiries" WHERE (refno LIKE ?)")
You note the "enquires" which for mysql should not have the quotes and is causing error.
I have looked at persistance.xml and it looks ok. Even tried setting database to MySQL4
Any suggestions to what controls the SQL syntax?
James
excerpt from persistance.xml
+<properties>+
+<property name="eclipselink.target-server" value="WebLogic_10"/>+
+<property name="javax.persistence.jtaDataSource"+
+value="java:/app/jdbc/jdbc/main_MySQLDS"/>+
+<property name="eclipselink.target-database" value="MySQL5"/>+
+<property name="eclipselink.jdbc.native-sql" value="true"/>+
+</properties>+
+</persistence-unit>+
+<persistence-unit name="genesys" transaction-type="RESOURCE_LOCAL">+
+<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>+
+<class>genesys.Enquiries</class>+
+<properties>+
+<property name="eclipselink.jdbc.driver" value="com.mysql.jdbc.Driver"/>+
+<property name="eclipselink.jdbc.url"+
+value="jdbc:mysql://127.0.0.1:3306/main"/>+
+<property name="eclipselink.jdbc.user" value="root"/>+
+<property name="eclipselink.jdbc.password"+
+value="B0855467D54C688144F5AA7621CE386D"/>+
+<property name="eclipselink.logging.level" value="FINER"/>+
+<property name="eclipselink.target-server" value="WebLogic_10"/>+
+<property name="eclipselink.target-database" value="MySQL5"/>+
+<property name="eclipselink.jdbc.native-sql" value="true"/>+
+</properties>+

I am trying to do the same thing, but in my case I am using my onkyo receiver to do the decoding. I have a minijack converter to coax in the mic jack of the card. I switched the options to digital i/o out. This does work, but I can only get stereo sound. When I play my 5. dvd, it still plays it in stereo sound. I have all the settings correct, as I can get 5. sound out of my onboard coax but not the creative extreme music. It also greys out the option for passthru(external source decoder).
My roommate has the platinum creative sound card with the front panel with coax/optical out right on it, he has WAY more dobly/dts options in his menu settings and is able to send 5. out easily. auto detects it and with minor tweaks, gets 5. out thru either optical or coax.
I thought this card supported 5. coax out thru the digital port. I just dont think it does, the options are missing from the menu all together, and yes I have the most recently updated webupdate. I can get stereo sound thats it. Funny how my realtek onboard does a way better job then this "higher end" sound card.
Am I missing something maybe? Please help, I would like to get this going, or at least get a solid answer if this is even possible so I can stop wasting my time with it.
Thanks,
Joe

Similar Messages

  • I have a Power Mac G4 and i am trying to get it to work with my LCD

    I have a Power Mac G4 and i am trying to get it to work with my LCD Monitor/TV. The connection on the computer is DVI and the connection on the Monitor is DVI. The Monitor says in the manual to hook up computers using the DVI connection. When I connect the too the monitor says there is no video input. I tried changing the settings on the monitor from PC mode to DVI mode and nothing. I have also tried changing the display on the computer to a couple of different settings and nothing. Please Help?

    Hi-
    A little more info please.
    What model G4?
    What Graphics card?
    What OS?
    What model/make of monitor?
    G4AGP(450)Sawtooth, 2ghz PowerLogix, 2gbRAM, RaptorSATAATA, ATI Radeon 9800   Mac OS X (10.4.8)   Pioneer DVR-109, 23" ACD, Ratoc USB 2.0, QCam Ultra, Nikon Coolscan

  • Anyone tried to get Jabber to work with Domino for contact search

                       I have a customer who has recently upgraded to CUCM 8.6.2.22900-9 and Presence 8.6.4.11900-1 fom CUCM 6.x and Presence 6.x. When they were at 6.x they were able to integrate CUPC contact search with Domino server. I realize this was not supported, but they got it to work. Now they want to attempt to get Jabber to work with Domino. Again I realize that is not a supported LDAP for Jabber, but I was wondering if anyone has perhaps tried this and what their experience was.

                       I have a customer who has recently upgraded to CUCM 8.6.2.22900-9 and Presence 8.6.4.11900-1 fom CUCM 6.x and Presence 6.x. When they were at 6.x they were able to integrate CUPC contact search with Domino server. I realize this was not supported, but they got it to work. Now they want to attempt to get Jabber to work with Domino. Again I realize that is not a supported LDAP for Jabber, but I was wondering if anyone has perhaps tried this and what their experience was.

  • Trying to get PM to work with our upgrade process

    We are trying to get Personality migration working properly in our
    environment to migrate our users from 2000 to XP. We have been able to
    get the files to migrate properly, but are having issues with the
    application settings. We have installed PM from Zenworks 7 which is the
    Computer Associates version. When we are setting up the template in the
    application area, there does not seem to be anything there. For example,
    how do we set PM to gather the IE settings but not gather the proxy
    settings? Also, where would I find better documentation on this product?
    THanks in advance for any help.
    Brian

    Brian,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Trying to get 3d to work with xbr70x850b and bdp-s7200

    have new xbr70x850b and new bdp-s7200.  Using Exodus to experiement.  BD says disk is 3d.  tv lets me into 3d menu so it seems to think the feed is 3d.  but none of the menu items (side by side, over/under) are present.  Glasses are registered and turned on.  BD connected directly into tv with new hdmi cable.  Have tried lots of setting changes on tv and bd, but can't get any of the 3d menu options to appear on tv.  3d works with streaming samples from youtube.  Just not with BD. Any hints?  very frustrating. 

    Ok I have been following the instructions supplied on this website http://www.zentus.com/sqlitejdbc/usage.html.
    I have downloaded the jar and the dll file and have placed them into the same folder as my jar file. Then as it says I enter into the command line:
    "java -cp sqlitejdbc.jar - Djava.library.path=. - jar CBL_Program.jar" and I get this:
    Exception in thread "main" java.lang.ClassNotFoundException: org.sqlite.JDBC
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at cblprogram.Main.main(Main.java:28)
    Which seems to be the same exception as when I run the program from netbeans.
    I am really stumped on this one, please can someone help.

  • Ive bought an Airport Time Capsule. trying to get it to work with BT home hub 3

    Ive followed the advice on this forum but I still cant get the Capsule to connect to the internet.
    Ive set the Capsule as a bridge.
    Connected the ethernet cable from the Capsule to the Ethernet port on the back of the BT homehub 3.
    the light on the front of the capsule still flashes yellow.
    so I have a back up made, but in order to get it to work, i need to switch between the wireless network on the homehub (where I have internet connectivity) and the Capsule wireless network (where there is no internet connectivity)
    what am I doing wrong?
    thank you.

    That is odd. Normally with bridge you will have no issues with internet.
    Is the ethernet light on, both on the TC and HH3.. the little light next to the port.. or it might be on the main panel of the HH3.
    Find out what the error messages are by opening the airport utility and click on the TC.

  • How the devil do I get MySQL to work with leopard?

    I have followed the instructions to the letter (several times) and while I have successfully got Apache and PHP working, I still get
    "Can't connect to local MySQL server through socket 'var/mysql/mysql.sock"
    can someone PLEASE put me out of my misery?

    Barney & Fred,
    Try another calendar source. Others have found Hebcal Jewish Calendar to be a better source than the Apple provided Jewish holiday calendar.

  • Trying to get collision detection working with havok

    Hi - I'm having some trouble using collision detection within
    director using a w3d file with havok applied to it. I've been using
    the registerinterest function but I get a "value out of range"
    error.
    This is my code (there is a cone and box on a plane imported
    from 3d max - named Cone01 and Box01 these are both movable rigid
    bodies).
    on beginSprite me
    box1=member("3d").model("Box01")
    cone1=member("3d").model("Cone01")
    w = member ( 1 )
    hk = member( 2 )
    hk.initialize( w, 0.1, 1 )
    hk.registerInterest (box1, cone1, 10, 0, #collision, me)
    end
    on collision me, details
    sound(2).play(member("hihats"))
    end
    on enterFrame me
    end
    I've also tried this and had no luck:
    on beginSprite me
    rb1 = sprite(1).pHavok.rigidBody("Box01")
    rb2 = sprite(1).pHavok.rigidBody("Cone01")
    w = member ( 1 )
    hk = member( 2 )
    hk.initialize( w, 0.1, 1 )
    hk.registerInterest (rb1, rb2, 10, 0, #collision, me)
    end
    Any help would be great.
    Thanks

    quote:
    Originally posted by:
    josiewales
    Hi - I'm having some trouble using collision detection within
    director using a w3d file with havok applied to it.
    Just study this example:
    http://necromanthus.com/Games/ShockWave/tutorials/FPS_Havok.html
    cheers

  • I have a ipod touch gen 2 and I am trying to get airplay to work with my pioneer Elite VSX receiver.

    I have a gen 2 IPOD touch with the current operating system (4.2.1).  As well I have a Pioneer A/V Elite series VSX 52 that is airplay ready.  On my ipod touch there is no airplay icon(s) with the music feature.  I am trying to make this work but have no results.  If there is a download that I need to enable to have this function work.
    Let me know
    KUNTRI

    There are no setting on the iPod. Unlike the iPad wich morrors the iPad display, TV out on an iPod only displays TV out on apps that support TV out. The Video app is one such app.
    Is that you problem?
    Otherwise:
    Try:
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.

  • Trying to get SPDIF to work with Audigy 2... help! (I read the guide)

    ?I have the following miniplug/TOSlink cable purchased from Amazon:
    Amazon.com: Cables To Go 2707 Velocity Toslink-to-Optical Mini Plug Digital Cable (3 Meters): Electronics: Reviews, Prices & more
    I enabled SPDIF output from the Audigy 2 card as the default sound device in Windows 7. I have the miniplug end plugged into the white output of my Audigy 2. There is a sound bar next to the SPDIF output showing that there is output if I play a DVD or music. But, when I look at the TOSlink end of my cable, I see no red light AKA no signal is being output.
    In the audio console, I have tried both the SPDIF passthrough and the onboard encoder options without success from either. What am I still doing wrong? Thanks guys

    so what i understand is i cant connect my home theatre (optical out only) with my audigy 2 zs even i use optical to mini plug adapter?

  • My iMessage for my Macbook Air is not working. It says no delivered with a red ! next to it. I have tried serval different options on trying to get it to work to include logging out of iCloud and checking my date and time. I have done about everythin

    My iMessage for my Macbook Air is not working. I have updated everything. My system is running on OS X Yosemite Version 10.10. When I go to send a message, it says no delivered with a next to it. I have tried serval different options on trying to get it to work to include logging out of iCloud and checking my date and time and updating FlashPlayer. I have done about everything I can think of. Any help would be greatly appreciate!

    Why start a new and very similar thread to your other one which you have not responded to (have you read the replies?)
    I suggest that no response is made to this duplicate thread. 

  • Trying to get home shaing working on apple tv using Cisco Access points and a Cisco WLC 5508 with 7.2.110 code.  I can get devices working individually but they never see each other.  I can ping the apple tv from my laptop and ipad.

    Trying to get home sharing working on a corporate wireless network.  Cisco wireless.
    WLC5508 controller
    Cisco 3502 access points
    All apple devices on same WLAN - security WPA2-PSK
    ITunes account up to date
    All devices laterst software.
    Can ping apll tv from laptop
    can ping apple tv from ipad
    Can ping ipad from laptop
    can ping laptop from ipad.
    Apple tv never sees any other device.
    Any ideas?

    Fascinating just reading about your setup. I have a WRT350N and have noticed that it will drop its speed, sometimes down to 1Mbps. It seems to do so at about the same time every day, but usually comes back to speed in about 5 minutes. In my experience, the Apple TV will disconnect if the speed falls this low. Try monitoring the Linksys with Netstumbler, Vistumbler, or just in the Windows Network utility.
    Check the "lease obtained" and "lease expired" times for your router to see if that is when the network fails. I've just finished reading an angry thread over at the Linksys forum about the WRT330N where someone mentioned that the router wasn't renewing its lease.
    "I cannot set it run off automatic DHCP from the WRT330N, the router will not assign it an IP every time the lease expires, causing me to have to manually set an IP on the Print server. That's annoying. Having the router drop IP's to individual machines after 12-48 hours...very annoying."
    http://forums.linksys.com/linksys/board/message?board.id=Wireless_Routers&thread .id=67412
    If that is the problem, then I would consider setting up a Static IP address for your Apple TV. You can do that through the user interface -> Settings -> Network -> Configure ... (Quite intuitive as you only have change IP address and the subsequent details remain the same.)
    My router assigns IP Addresses in the ranges of 192.168.1.100 ->149. The idea here is to choose an address outside of that range but is not greater than 192.168.1.253 (and should not end in the number 1). You shouldn't have to change the linksys router as long as 50 clients are assigned in that range. You'll have to figure that out by accessing your router webpage at browser address 192.168.1.1 -> the default password is "admin" (without the quotes).
    Good luck.

  • How to get exact match when working with Oracle Text?

    Hi,
    I'm running Oracle9i Database R2.
    I would like to know how do I get exact match when working with Oracle Text.
    DROP TABLE T_TEST_1;
    CREATE TABLE T_TEST_1 (text VARCHAR2(30));
    INSERT INTO T_TEST_1 VALUES('Management');
    INSERT INTO T_TEST_1 VALUES('Busines Management Practice');
    INSERT INTO T_TEST_1 VALUES('Human Resource Management');
    COMMIT;
    DROP INDEX T_TEST_1;
    CREATE INDEX T_TEST_1_IDX ON T_TEST_1(text) INDEXTYPE IS CTXSYS.CONTEXT;
    SELECT * FROM T_TEST_1 WHERE CONTAINS(text, 'Management')>0;
    The above query will return 3 rows. How do I make Oracle Text to return me only the first row - which is exact match because sometimes my users need to look for exact match term.
    Please advise.
    Regards,
    Jap.

    But I would like to utilize the Oracle Text index. Don't know your db version, but if you slightly redefine your index you can achieve this (at least on my 11g instance) :
    SQL> create table t_test_1 (text varchar2(30))
      2  /
    Table created.
    SQL> insert into t_test_1 values ('Management')
      2  /
    1 row created.
    SQL> insert into t_test_1 values ('Busines Management Practice')
      2  /
    1 row created.
    SQL> insert into t_test_1 values ('Human Resource Management')
      2  /
    1 row created.
    SQL>
    SQL> create index t_test_1_idx on t_test_1(text) indextype is ctxsys.context filter by text
      2  /
    Index created.
    SQL> set autotrace on explain
    SQL>
    SQL> select text, score (1)
      2    from t_test_1
      3   where contains (text, 'Management and sdata(text="Management")', 1) > 0
      4  /
    TEXT                             SCORE(1)
    Management                              3
    Execution Plan
    Plan hash value: 4163886076
    | Id  | Operation                   | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |              |     1 |    29 |     4   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| T_TEST_1     |     1 |    29 |     4   (0)| 00:00:01 |
    |*  2 |   DOMAIN INDEX              | T_TEST_1_IDX |       |       |     4   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("CTXSYS"."CONTAINS"("TEXT",'Management and
                  sdata(text="Management")',1)>0)
    Note
       - dynamic sampling used for this statementJust read that you indeed mentioned your db version in your first post.
    Not sure though if above method is already available in 9i ...
    Message was edited by:
    michaels

  • HT200160 This solution does not seem to work when I upgraded from OS X 10.6 to OS X 10.8 (Mountain Lion).  I've tried all versions of this.  Any suggestions specific to getting this to work with Mountain Lion?

    Any suggestions for making this work with Mountain Lion?  I've tried all similar solutions on web.  I've been able to get this to work with Lion, and after upgrading to Mountain Lion it seems to hold true (doesn't make me implement again).  But when I went from OSX 10.6 to Mountain Lion and have to implement it on 10.8 - it isn't working. Thanks.

    Any suggestions for making this work with Mountain Lion?  I've tried all similar solutions on web.  I've been able to get this to work with Lion, and after upgrading to Mountain Lion it seems to hold true (doesn't make me implement again).  But when I went from OSX 10.6 to Mountain Lion and have to implement it on 10.8 - it isn't working. Thanks.

  • Working with Oracle Multimedia Types ORDSYS.ORDDOC

    Hi All,
    Using the "Oracle Fusion Developer Guide" page 404 Working with Oracle Multimedia Types by Frank Nimphius and Lynn Munsinger. I tried to replicate the solution in a sample app. My upload works as said when I place the VO as a ADF Form.
    Now I wanted to replicate the same while placing the VO as a ADF Table, where user has an option of creating 1 or more records.
    I have made the following changes to the pageDef. and jspx
    <tree IterBinding="MydocsView1Iterator" id="MydocsView1" CustomInputHandler="OrdDomainValueHandler">
          <nodeDefinition DefName="model.MydocsView" Name="MydocsView10" >
            <AttrNames>
              <Item Value="Id"/>
              <Item Value="Doc" />
              <Item Value="Image"/>
            </AttrNames>
          </nodeDefinition>
        </tree>
    <af:column sortProperty="Doc" sortable="false"
                           headerText="#{bindings.MydocsView1.hints.Doc.label}"
                           id="c1">
                  <af:inputFile value="#{row.bindings.Doc.inputValue}"
                                label="#{bindings.MydocsView1.hints.Doc.label}"
                                required="#{bindings.MydocsView1.hints.Doc.mandatory}"
                                columns="#{bindings.MydocsView1.hints.Doc.displayWidth}"
                                shortDesc="#{bindings.MydocsView1.hints.Doc.tooltip}"
                                id="it3">
                    <f:validator binding="#{row.bindings.Doc.validator}"/>
                    <binding:convertOrdDomain bindingRef="#{row.bindings.Doc}"/>
                  </af:inputFile>
                </af:column>When I changed the <binding:convertOrdDomain bindingRef ="#{bindings.Doc}" to <binding:convertOrdDomain bindingRef="#{row.bindings.Doc}"/> it started throwing null pointer exception.
    java.lang.NullPointerException
         at oracle.jbo.im.OrdUtils.getOrdObject(OrdUtils.java:33)
         at oracle.adfinternal.view.faces.convert.OrdDomainConverter.getAsObject(OrdDomainConverter.java:40)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputFileRenderer.getConvertedValue(SimpleInputFileRenderer.java:111)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.getConvertedValue(LabeledInputRenderer.java:99)Anything extra to be done when we trying to workout uploadfiles in a ADFTable.
    Thanks,
    Morgan.
    Edited by: Morgan Freeman on Sep 7, 2011 6:03 AM

    Hi Morgan,
    I was wondering if you were able to resolve this issue. I had a table where I had users manage attached files and it was giving me this same error.
    java.lang.NullPointerException
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDef(JUCtrlValueBinding.java:553)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDef(JUCtrlValueBinding.java:2637)
         at oracle.jbo.im.OrdUtils.getOrdObject(OrdUtils.java:33)
         at oracle.adfinternal.view.faces.convert.OrdDomainConverter.getAsObject(OrdDomainConverter.java:40)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputFileRenderer.getConvertedValue(SimpleInputFileRenderer.java:111)
    I thought this was because of my table, so made my table read only and had the users navigate to a pop up with a form where one of the fields has the CustomInputHandler="OrdDomainValueHandler". This appears to work fine when the first file is attached. However, if I go to another record and try to attach a file, I get the error you menioned again.
    Were you able to resolve this? If yes, do you mind sharing your solution/work around?

Maybe you are looking for